From 42062dab34192d2cb9ed66a720c0f791408c61c0 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 10 Aug 2011 13:15:43 -0700 Subject: refactor(scope): remove $flush/$observe ng:eval/ng:eval-order --- test/ScenarioSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/ScenarioSpec.js') diff --git a/test/ScenarioSpec.js b/test/ScenarioSpec.js index ce8b0dec..e91e0b98 100644 --- a/test/ScenarioSpec.js +++ b/test/ScenarioSpec.js @@ -15,20 +15,20 @@ describe("ScenarioSpec: Compilation", function(){ it("should compile dom node and return scope", function(){ var node = jqLite('
{{b=a+1}}
')[0]; scope = angular.compile(node)(); - scope.$flush(); + scope.$digest(); expect(scope.a).toEqual(1); expect(scope.b).toEqual(2); }); it("should compile jQuery node and return scope", function(){ scope = compile(jqLite('
{{a=123}}
'))(); - scope.$flush(); + scope.$digest(); expect(jqLite(scope.$element).text()).toEqual('123'); }); it("should compile text node and return scope", function(){ scope = angular.compile('
{{a=123}}
')(); - scope.$flush(); + scope.$digest(); expect(jqLite(scope.$element).text()).toEqual('123'); }); }); -- cgit v1.2.3