mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 00:51:29 +08:00
Merge pull request #15545 from Flarna/sinon_sandbox_reset
[sinon] Add reset(), resetBehavior() and resetHistory() to sandbox
This commit is contained in:
3
types/sinon/index.d.ts
vendored
3
types/sinon/index.d.ts
vendored
@@ -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