Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
test(matchers): add toBeOneOf matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Sep 27, 2011
1 parent bf5e5f7 commit 084b83f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/testabilityPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ beforeEach(function(){
};

return this.actual.callCount == 1;
},


toBeOneOf: function() {
return angularArray.indexOf(arguments, this.actual) !== -1;
}
});

Expand Down

0 comments on commit 084b83f

Please sign in to comment.