diff options
| author | Igor Minar | 2011-09-27 20:59:18 +0200 | 
|---|---|---|
| committer | Igor Minar | 2011-09-27 21:48:47 +0200 | 
| commit | 084b83ffa909a2221008acd64fe59b326d30bc87 (patch) | |
| tree | 84215e9651f481ec72ebbe41b5b52fad08d2aaff /test/testabilityPatch.js | |
| parent | bf5e5f7bc9ebc7dc6cf8fdf3c4923498b22a8654 (diff) | |
| download | angular.js-084b83ffa909a2221008acd64fe59b326d30bc87.tar.bz2 | |
test(matchers): add toBeOneOf matcher
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 5 | 
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;      }    }); | 
