test(matchers): add toBeOneOf matcher

This commit is contained in:
Igor Minar 2011-09-27 20:59:18 +02:00
parent bf5e5f7bc9
commit 084b83ffa9

View file

@ -120,6 +120,11 @@ beforeEach(function(){
};
return this.actual.callCount == 1;
},
toBeOneOf: function() {
return angularArray.indexOf(arguments, this.actual) !== -1;
}
});