From 338264b5f6964999d36b4889fed95464a1f0fa84 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 11 Jul 2013 11:58:47 -0700 Subject: [PATCH] test(ngPattern): fix disabled test --- test/ng/directive/inputSpec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/ng/directive/inputSpec.js b/test/ng/directive/inputSpec.js index 275324f5..ff504872 100644 --- a/test/ng/directive/inputSpec.js +++ b/test/ng/directive/inputSpec.js @@ -516,11 +516,11 @@ describe('input', function() { }); - xit('should throw an error when scope pattern can\'t be found', function() { - compileInput(''); - - 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(''); + scope.$apply(); + }).toThrow('Expected fooRegexp to be a RegExp but was undefined'); }); });