mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 07:14:44 +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;
|
return this.actual.callCount == 1;
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
toBeOneOf: function() {
|
||||||
|
return angularArray.indexOf(arguments, this.actual) !== -1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue