Skip to content

Commit 338264b

Browse files
committed
test(ngPattern): fix disabled test
1 parent 19b51ca commit 338264b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/ng/directive/inputSpec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,11 @@ describe('input', function() {
516516
});
517517

518518

519-
xit('should throw an error when scope pattern can\'t be found', function() {
520-
compileInput('<input type="text" ng-model="foo" ng-pattern="fooRegexp" />');
521-
522-
expect(function() { changeInputValueTo('xx'); }).
523-
toThrow('Expected fooRegexp to be a RegExp but was undefined');
519+
it('should throw an error when scope pattern can\'t be found', function() {
520+
expect(function() {
521+
compileInput('<input type="text" ng-model="foo" ng-pattern="fooRegexp" />');
522+
scope.$apply();
523+
}).toThrow('Expected fooRegexp to be a RegExp but was undefined');
524524
});
525525
});
526526

0 commit comments

Comments
 (0)