mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
fix for combined matchers in sinon
This commit is contained in:
Vendored
+2
-2
@@ -302,8 +302,8 @@ interface SinonStatic {
|
||||
}
|
||||
|
||||
interface SinonMatcher {
|
||||
and(expr: SinonMatch): SinonMatcher;
|
||||
or(expr: SinonMatch): SinonMatcher;
|
||||
and(expr: SinonMatcher): SinonMatcher;
|
||||
or(expr: SinonMatcher): SinonMatcher;
|
||||
}
|
||||
|
||||
interface SinonMatch {
|
||||
|
||||
@@ -76,10 +76,15 @@ function testSeven() {
|
||||
mockObj.expects('functionToTest').once();
|
||||
}
|
||||
|
||||
function testEight() {
|
||||
var combinedMatcher = sinon.match.typeOf("object").and(sinon.match.has("pages"));
|
||||
}
|
||||
|
||||
testOne();
|
||||
testTwo();
|
||||
testThree();
|
||||
testFour();
|
||||
testFive();
|
||||
testSix();
|
||||
testSeven();
|
||||
testSeven();
|
||||
testEight();
|
||||
Reference in New Issue
Block a user