Add reset() functions to sandbox.

This commit is contained in:
Flarna
2017-03-31 15:22:35 +02:00
parent f2b6506ba5
commit 9b78e929f0
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -404,6 +404,9 @@ declare namespace Sinon {
useFakeXMLHttpRequest: SinonFakeXMLHttpRequestStatic;
useFakeServer(): SinonFakeServer;
restore(): void;
reset(): void;
resetHistory(): void;
resetBehavior(): void;
}
interface SinonSandboxStatic {
+3
View File
@@ -98,6 +98,9 @@ function testSandbox() {
sandbox.useFakeXMLHttpRequest();
sandbox.useFakeServer();
sandbox.restore();
sandbox.reset();
sandbox.resetHistory();
sandbox.resetBehaviour();
}
function testPromises() {