mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-11 08:13:10 +00:00
use toMatch in widgetSpec
This commit is contained in:
parent
142a985f33
commit
b28dee7fd5
1 changed files with 1 additions and 1 deletions
|
|
@ -675,7 +675,7 @@ describe("widget", function(){
|
||||||
var log = "";
|
var log = "";
|
||||||
log += element.attr('ng-exception') + ';';
|
log += element.attr('ng-exception') + ';';
|
||||||
log += element.hasClass('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() {
|
it('should expose iterator offset as $index when iterating over arrays', function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue