mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-28 12:55:48 +08:00
@@ -43,7 +43,7 @@ describe('NgModelController', function() {
|
||||
}
|
||||
|
||||
expect(exception.message).
|
||||
toMatch(/^\[ngModel:nonassign\] Expression '1\+2' is non\-assignable\. Element: <input( value="")? ng-model="1\+2">$/);
|
||||
toMatch(/^\[ngModel:nonassign\] Expression '1\+2' is non\-assignable\. Element: <input( value="")? ng-model="1\+2">/);
|
||||
}));
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@ describe('input', function() {
|
||||
expect(function() {
|
||||
compileInput('<input type="text" ng-model="throw \'\'">');
|
||||
scope.$digest();
|
||||
}).toThrow("[$parse:syntax] Syntax Error: Token '''' is an unexpected token at column 7 of the expression [throw ''] starting at [''].");
|
||||
}).toThrowMinErr("$parse", "syntax", "Syntax Error: Token '''' is an unexpected token at column 7 of the expression [throw ''] starting at [''].");
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user