Skip to content

Commit

Permalink
Merge pull request #201 from BrianMitchL/add-types
Browse files Browse the repository at this point in the history
Add resetHandlers and resetHistory types
  • Loading branch information
ctimmerm committed Jul 2, 2019
2 parents d742b23 + 96993eb commit 67bbc9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/index.d.ts
Expand Up @@ -47,6 +47,7 @@ declare class MockAdapter {

adapter(): AxiosAdapter;
reset(): void;
resetHandlers(): void;
resetHistory(): void;
restore(): void;

Expand Down
8 changes: 8 additions & 0 deletions types/test.ts
Expand Up @@ -22,6 +22,14 @@ namespace SupportsReset {
mock.reset();
}

namespace SupportsResetHandlers {
mock.resetHandlers();
}

namespace SupportsResetHistory {
mock.resetHistory();
}

namespace SupportsRestore {
mock.restore();
}
Expand Down

0 comments on commit 67bbc9f

Please sign in to comment.