mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Add reset() functions 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.resetBehaviour();
|
||||
}
|
||||
|
||||
function testPromises() {
|
||||
|
||||
Reference in New Issue
Block a user