mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #15545 from Flarna/sinon_sandbox_reset
[sinon] Add reset(), resetBehavior() and resetHistory() to sandbox
This commit is contained in:
Vendored
+3
@@ -404,6 +404,9 @@ declare namespace Sinon {
|
||||
useFakeXMLHttpRequest: SinonFakeXMLHttpRequestStatic;
|
||||
useFakeServer(): SinonFakeServer;
|
||||
restore(): void;
|
||||
reset(): void;
|
||||
resetHistory(): void;
|
||||
resetBehavior(): void;
|
||||
}
|
||||
|
||||
interface SinonSandboxStatic {
|
||||
|
||||
@@ -98,6 +98,9 @@ function testSandbox() {
|
||||
sandbox.useFakeXMLHttpRequest();
|
||||
sandbox.useFakeServer();
|
||||
sandbox.restore();
|
||||
sandbox.reset();
|
||||
sandbox.resetHistory();
|
||||
sandbox.resetBehavior();
|
||||
}
|
||||
|
||||
function testPromises() {
|
||||
|
||||
Reference in New Issue
Block a user