Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 338264b

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/ng/directive/inputSpec.js

+5-5
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)