Created
August 27, 2014 23:01
-
-
Save matsko/46534a40cadb1d8466b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iit('should continue the phase', inject(function($rootScope) { | |
$rootScope.$watch('a', function(a) { | |
if (a === 1) throw new minErr('$compile')('fail', '...'); | |
}); | |
$rootScope.a = 0; | |
$rootScope.$digest(); | |
expect(function() { | |
$rootScope.a = 1; | |
$rootScope.$digest(); | |
}).toThrow(); | |
$rootScope.$digest(); | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment