aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
authorIgor Minar2011-01-06 17:06:01 -0800
committerIgor Minar2011-01-07 12:02:46 -0800
commitb28dee7fd540a6c46087e66fb2f6ca2307cf17c6 (patch)
tree1edf4255da13d3d50037baf55ed806959b4e25fe /test/widgetsSpec.js
parent142a985f33e72ab8c86916dcb6fe6996671b1b5a (diff)
downloadangular.js-b28dee7fd540a6c46087e66fb2f6ca2307cf17c6.tar.bz2
use toMatch in widgetSpec
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index 98dd3480..e56e895b 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -675,7 +675,7 @@ describe("widget", function(){
var log = "";
log += element.attr('ng-exception') + ';';
log += element.hasClass('ng-exception') + ';';
- expect(log.match(/Expected ng:repeat in form of 'item in collection' but got 'i dont parse'./)).toBeTruthy();
+ expect(log).toMatch(/Expected ng:repeat in form of 'item in collection' but got 'i dont parse'./);
});
it('should expose iterator offset as $index when iterating over arrays', function() {