aboutsummaryrefslogtreecommitdiffstats
path: root/test/matchers.js
diff options
context:
space:
mode:
authorKen Sheedlo2013-06-07 18:24:30 -0700
committerIgor Minar2013-06-17 13:29:30 -0700
commit003861d2fdb37b83e1d0939d49b70fbc67766997 (patch)
treedc53ff724097cc7485093bb43c2f3aa5f4377cb2 /test/matchers.js
parent908071afbf32c46fe9110e4a67e104bbd4b3a56b (diff)
downloadangular.js-003861d2fdb37b83e1d0939d49b70fbc67766997.tar.bz2
chore(minErr): replace ngError with minErr
Diffstat (limited to 'test/matchers.js')
-rw-r--r--test/matchers.js5
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);
}
});
});