diff options
Diffstat (limited to 'test/matchers.js')
| -rw-r--r-- | test/matchers.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/matchers.js b/test/matchers.js index 44d6b61e..67efd3e7 100644 --- a/test/matchers.js +++ b/test/matchers.js @@ -149,9 +149,8 @@ beforeEach(function() { angular.element(this.actual).hasClass(clazz); }, - toThrowNg: function(expected) { - return jasmine.Matchers.prototype.toThrow.call(this, new RegExp('\\[NgErr\\d*\\] ' + - expected.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"))); + toThrowMatching: function(expected) { + return jasmine.Matchers.prototype.toThrow.call(this, expected); } }); }); |
