From 34f174066f1aa70dba0f97942580082169348200 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 12 Aug 2011 14:32:25 -0700 Subject: refactor(scope): non-recursive $digest method --- test/ScopeSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ScopeSpec.js b/test/ScopeSpec.js index b3edad6c..efc8c98c 100644 --- a/test/ScopeSpec.js +++ b/test/ScopeSpec.js @@ -176,7 +176,7 @@ describe('Scope', function(){ root.$digest(); log = ''; root.a = 1; - expect(root.$digest()).toEqual(3); + root.$digest(); expect(root.b).toEqual(1); expect(root.c).toEqual(1); expect(root.d).toEqual(1); @@ -211,7 +211,7 @@ describe('Scope', function(){ root.$watch('b', function(){ log += 'b'; }); root.$digest(); log = ''; - expect(root.$digest()).toEqual(0); + root.$digest(); expect(log).toEqual(''); }); -- cgit v1.2.3