diff options
Diffstat (limited to 'test/ScenarioSpec.js')
| -rw-r--r-- | test/ScenarioSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
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('<div ng:init="a=1">{{b=a+1}}</div>')[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('<div>{{a=123}}</div>'))(); - scope.$flush(); + scope.$digest(); expect(jqLite(scope.$element).text()).toEqual('123'); }); it("should compile text node and return scope", function(){ scope = angular.compile('<div>{{a=123}}</div>')(); - scope.$flush(); + scope.$digest(); expect(jqLite(scope.$element).text()).toEqual('123'); }); }); |
