diff options
| author | Misko Hevery | 2011-08-12 14:32:25 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-08-14 21:32:15 -0700 |
| commit | 34f174066f1aa70dba0f97942580082169348200 (patch) | |
| tree | 98dc485ab2963109689bc6fef89cf7123690b4e6 /test | |
| parent | 530dc412c4d4700268e52920e6114f7941171706 (diff) | |
| download | angular.js-34f174066f1aa70dba0f97942580082169348200.tar.bz2 | |
refactor(scope): non-recursive $digest method
Diffstat (limited to 'test')
| -rw-r--r-- | test/ScopeSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
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(''); }); |
