aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-11-16 13:57:41 -0800
committerIgor Minar2010-11-16 14:19:55 -0800
commitb2d63ac48bdc61b5a4afdd10b8485c0c1ab8cdca (patch)
tree0b798ba07d5b593dcc3e27964e81eb0542440d56 /test/directivesSpec.js
parent4af32de84a264e05eebfa6dbc09ce10fac1e1417 (diff)
downloadangular.js-b2d63ac48bdc61b5a4afdd10b8485c0c1ab8cdca.tar.bz2
Changed error handling so that better stack traces are displayed in the ng-errors
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index d575c062..4b949fcb 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -168,7 +168,7 @@ describe("directives", function(){
var log = "";
log += element.attr('ng-exception') + ';';
log += element.hasClass('ng-exception') + ';';
- expect(log).toEqual("\"Expected ng:repeat in form of 'item in collection' but got 'i dont parse'.\";true;");
+ expect(log.match(/Expected ng:repeat in form of 'item in collection' but got 'i dont parse'./)).toBeTruthy();
});
it('should expose iterator offset as $index when iterating over arrays', function() {