aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorIgor Minar2011-09-27 20:59:18 +0200
committerIgor Minar2011-09-27 21:48:47 +0200
commit084b83ffa909a2221008acd64fe59b326d30bc87 (patch)
tree84215e9651f481ec72ebbe41b5b52fad08d2aaff /test/testabilityPatch.js
parentbf5e5f7bc9ebc7dc6cf8fdf3c4923498b22a8654 (diff)
downloadangular.js-084b83ffa909a2221008acd64fe59b326d30bc87.tar.bz2
test(matchers): add toBeOneOf matcher
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js5
1 files changed, 5 insertions, 0 deletions
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;
}
});