We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b51ca commit 338264bCopy full SHA for 338264b
1 file changed
test/ng/directive/inputSpec.js
@@ -516,11 +516,11 @@ describe('input', function() {
516
});
517
518
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');
+ 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');
524
525
526
0 commit comments