aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng')
-rw-r--r--test/ng/rootScopeSpec.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ng/rootScopeSpec.js b/test/ng/rootScopeSpec.js
index 2ea41489..86436ea8 100644
--- a/test/ng/rootScopeSpec.js
+++ b/test/ng/rootScopeSpec.js
@@ -605,7 +605,9 @@ describe('Scope', function() {
it('should not infinitely digest when current value is NaN', function() {
$rootScope.obj = [NaN];
- $rootScope.$digest();
+ expect(function() {
+ $rootScope.$digest();
+ }).not.toThrow();
});
it('should watch array-like objects like arrays', function () {