mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Add sinon.assert.match
This commit is contained in:
Vendored
+1
@@ -363,6 +363,7 @@ declare namespace Sinon {
|
||||
alwaysThrew(spy: SinonSpy): void;
|
||||
alwaysThrew(spy: SinonSpy, exception: string): void;
|
||||
alwaysThrew(spy: SinonSpy, exception: any): void;
|
||||
match(actual: any, expected: any): void;
|
||||
expose(obj: any, options?: SinonExposeOptions): void;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,6 +90,12 @@ function testNine() {
|
||||
sinon.assert.neverCalledWithMatch(callback, { x: 6 });
|
||||
}
|
||||
|
||||
function testAssert() {
|
||||
sinon.assert.match(1, 1 + 1);
|
||||
sinon.assert.match("abc", "abc");
|
||||
sinon.assert.match({ a: 1 }, { b: 2, c: "abc" });
|
||||
}
|
||||
|
||||
function testSandbox() {
|
||||
let sandbox = sinon.sandbox.create();
|
||||
sandbox = sandbox.usingPromise(Promise);
|
||||
|
||||
Reference in New Issue
Block a user