diff options
Diffstat (limited to 'test/service/deferSpec.js')
| -rw-r--r-- | test/service/deferSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/service/deferSpec.js b/test/service/deferSpec.js index 8ac1b803..bd8fe7d7 100644 --- a/test/service/deferSpec.js +++ b/test/service/deferSpec.js @@ -43,10 +43,10 @@ describe('$defer', function() { var eval = this.spyOn(scope, '$eval').andCallThrough(); $defer(function() {}); - expect(eval).wasNotCalled(); + expect(eval).not.toHaveBeenCalled(); $browser.defer.flush(); - expect(eval).wasCalled(); + expect(eval).toHaveBeenCalled(); eval.reset(); //reset the spy; @@ -61,10 +61,10 @@ describe('$defer', function() { var eval = this.spyOn(scope, '$eval').andCallThrough(); $defer(function() {throw "Test Error";}); - expect(eval).wasNotCalled(); + expect(eval).not.toHaveBeenCalled(); $browser.defer.flush(); - expect(eval).wasCalled(); + expect(eval).toHaveBeenCalled(); }); it('should allow you to specify the delay time', function(){ |
