fix for combined matchers in sinon

This commit is contained in:
JesperSchultz
2013-04-18 18:42:10 +02:00
parent 873f2b75ee
commit 893f366fdc
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -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 {
+6 -1
View File
@@ -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();