mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
test(matchers): add toBeOneOf matcher
This commit is contained in:
parent
bf5e5f7bc9
commit
084b83ffa9
1 changed files with 5 additions and 0 deletions
|
|
@ -120,6 +120,11 @@ beforeEach(function(){
|
|||
};
|
||||
|
||||
return this.actual.callCount == 1;
|
||||
},
|
||||
|
||||
|
||||
toBeOneOf: function() {
|
||||
return angularArray.indexOf(arguments, this.actual) !== -1;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue