Merge pull request #485 from JesperSchultz/master

fix for combined matchers in sinon
This commit is contained in:
Diullei Gomes
2013-04-18 11:23:33 -07:00
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();