diff options
| author | Vojta Jina | 2011-05-31 10:32:54 +0200 |
|---|---|---|
| committer | Vojta Jina | 2011-05-31 10:32:54 +0200 |
| commit | 2e5199997c77cb2febed4ff21bc12a5d5fbad4ce (patch) | |
| tree | da57107e2e07e5d160af0383cbd86ee2fbc94c80 /test/service/deferSpec.js | |
| parent | b2f5299e0e3d6e4892b7fcc37686012147bf0afa (diff) | |
| download | angular.js-2e5199997c77cb2febed4ff21bc12a5d5fbad4ce.tar.bz2 | |
Rename deprecated wasCalled() -> toHaveBeenCalled() in all specs
As well as wasNotCalled(), wasCalledWith(), wasNotCalledWith()
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(){ |
