diff --git a/types/sinon/index.d.ts b/types/sinon/index.d.ts index 0dd6d29fce..224ab4003f 100644 --- a/types/sinon/index.d.ts +++ b/types/sinon/index.d.ts @@ -404,6 +404,9 @@ declare namespace Sinon { useFakeXMLHttpRequest: SinonFakeXMLHttpRequestStatic; useFakeServer(): SinonFakeServer; restore(): void; + reset(): void; + resetHistory(): void; + resetBehavior(): void; } interface SinonSandboxStatic { diff --git a/types/sinon/sinon-tests.ts b/types/sinon/sinon-tests.ts index afd20c2e18..8354045a25 100644 --- a/types/sinon/sinon-tests.ts +++ b/types/sinon/sinon-tests.ts @@ -98,6 +98,9 @@ function testSandbox() { sandbox.useFakeXMLHttpRequest(); sandbox.useFakeServer(); sandbox.restore(); + sandbox.reset(); + sandbox.resetHistory(); + sandbox.resetBehavior(); } function testPromises() {