diff options
Diffstat (limited to 'test/ScopeSpec.js')
| -rw-r--r-- | test/ScopeSpec.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/ScopeSpec.js b/test/ScopeSpec.js index 38350b17..acded34b 100644 --- a/test/ScopeSpec.js +++ b/test/ScopeSpec.js @@ -209,28 +209,6 @@ describe('scope/model', function(){ }); }); - describe('$postEval', function(){ - it('should eval function once and last', function(){ - var log = ''; - var scope = createScope(); - function onceOnly(){log+= '@';} - scope.$onEval(function(){log+= '.';}); - scope.$postEval(function(){log+= '!';}); - scope.$postEval(onceOnly); - scope.$postEval(onceOnly); - scope.$postEval(); // ignore - scope.$eval(); - expect(log).toEqual('.!@'); - scope.$eval(); - expect(log).toEqual('.!@.'); - - scope.$postEval(onceOnly); - scope.$postEval(onceOnly); - scope.$eval(); - expect(log).toEqual('.!@..@'); - }); - }); - describe('$new', function(){ it('should $new should create new child scope and $become controller', function(){ var parent = createScope(null, {exampleService: function(){return 'Example Service';}}); |
