From 9b78e929f0657e635449cc34f2067c17a7ee40ba Mon Sep 17 00:00:00 2001 From: Flarna Date: Fri, 31 Mar 2017 15:22:35 +0200 Subject: [PATCH 1/2] Add reset() functions to sandbox. --- types/sinon/index.d.ts | 3 +++ types/sinon/sinon-tests.ts | 3 +++ 2 files changed, 6 insertions(+) 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..cf6e028c24 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.resetBehaviour(); } function testPromises() { From f16814539aa28e7355a1730ebd2da22506930c34 Mon Sep 17 00:00:00 2001 From: Flarna Date: Fri, 31 Mar 2017 15:33:01 +0200 Subject: [PATCH 2/2] correct a typo --- types/sinon/sinon-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/sinon/sinon-tests.ts b/types/sinon/sinon-tests.ts index cf6e028c24..8354045a25 100644 --- a/types/sinon/sinon-tests.ts +++ b/types/sinon/sinon-tests.ts @@ -100,7 +100,7 @@ function testSandbox() { sandbox.restore(); sandbox.reset(); sandbox.resetHistory(); - sandbox.resetBehaviour(); + sandbox.resetBehavior(); } function testPromises() {