Skip to content

Commit

Permalink
chore(types) add originalAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenjennings committed Feb 22, 2021
1 parent 2725e4d commit e6b2d2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ declare class MockAdapter {
constructor(axiosInstance: AxiosInstance, options?: MockAdapterOptions);

adapter(): AxiosAdapter;
originalAdapter(): AxiosAdapter;
reset(): void;
resetHandlers(): void;
resetHistory(): void;
Expand Down
4 changes: 4 additions & 0 deletions types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ namespace ExposesAdapter {
mock.adapter();
}

namespace ExposesOriginalAdapter {
mock.originalAdapter();
}

namespace SupportsReset {
mock.reset();
}
Expand Down

0 comments on commit e6b2d2f

Please sign in to comment.