From b2d63ac48bdc61b5a4afdd10b8485c0c1ab8cdca Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 16 Nov 2010 13:57:41 -0800 Subject: Changed error handling so that better stack traces are displayed in the ng-errors --- test/directivesSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/directivesSpec.js') 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() { -- cgit v1.2.3