From 084b83ffa909a2221008acd64fe59b326d30bc87 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 27 Sep 2011 20:59:18 +0200 Subject: test(matchers): add toBeOneOf matcher --- test/testabilityPatch.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/testabilityPatch.js') diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 24f10139..3b9d9208 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -120,6 +120,11 @@ beforeEach(function(){ }; return this.actual.callCount == 1; + }, + + + toBeOneOf: function() { + return angularArray.indexOf(arguments, this.actual) !== -1; } }); -- cgit v1.2.3