mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-05 22:35:14 +08:00
test(matchers): add toBeOneOf matcher
This commit is contained in:
@@ -120,6 +120,11 @@ beforeEach(function(){
|
||||
};
|
||||
|
||||
return this.actual.callCount == 1;
|
||||
},
|
||||
|
||||
|
||||
toBeOneOf: function() {
|
||||
return angularArray.indexOf(arguments, this.actual) !== -1;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user