diff --git a/types/index.d.ts b/types/index.d.ts index 293a12b..85e61d7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -47,6 +47,8 @@ declare class MockAdapter { adapter(): AxiosAdapter; reset(): void; + resetHandlers(): void; + resetHistory(): void; restore(): void; history: { [method:string]:AxiosRequestConfig[]; }; diff --git a/types/test.ts b/types/test.ts index e778a39..60998ef 100644 --- a/types/test.ts +++ b/types/test.ts @@ -22,6 +22,14 @@ namespace SupportsReset { mock.reset(); } +namespace SupportsResetHandlers { + mock.resetHandlers(); +} + +namespace SupportsResetHistory { + mock.resetHistory(); +} + namespace SupportsRestore { mock.restore(); }