mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-20 16:30:26 +00:00
test(ngPattern): fix disabled test
This commit is contained in:
parent
19b51caa2c
commit
338264b5f6
1 changed files with 5 additions and 5 deletions
|
|
@ -516,11 +516,11 @@ describe('input', function() {
|
|||
});
|
||||
|
||||
|
||||
xit('should throw an error when scope pattern can\'t be found', function() {
|
||||
compileInput('<input type="text" ng-model="foo" ng-pattern="fooRegexp" />');
|
||||
|
||||
expect(function() { changeInputValueTo('xx'); }).
|
||||
toThrow('Expected fooRegexp to be a RegExp but was undefined');
|
||||
it('should throw an error when scope pattern can\'t be found', function() {
|
||||
expect(function() {
|
||||
compileInput('<input type="text" ng-model="foo" ng-pattern="fooRegexp" />');
|
||||
scope.$apply();
|
||||
}).toThrow('Expected fooRegexp to be a RegExp but was undefined');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue