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/ValidatorsSpec.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/ValidatorsSpec.js')
| -rw-r--r-- | test/ValidatorsSpec.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/test/ValidatorsSpec.js b/test/ValidatorsSpec.js index 773ac7d0..4e4592bf 100644 --- a/test/ValidatorsSpec.js +++ b/test/ValidatorsSpec.js @@ -131,10 +131,10 @@ describe('ValidatorTest', function(){        var spy = jasmine.createSpy();        asynchronous.call(self, "kai", spy); -      expect(spy).wasNotCalled(); +      expect(spy).not.toHaveBeenCalled();        asynchronous.call(self, "misko", spy); -      expect(spy).wasCalled(); +      expect(spy).toHaveBeenCalled();      });      it("should ignore old callbacks, and not remove spinner", function(){ @@ -156,7 +156,7 @@ describe('ValidatorTest', function(){        scope.updateFn = jasmine.createSpy();        scope.name = 'misko';        scope.$eval(); -      expect(scope.asyncFn).wasCalledWith('misko', scope.asyncFn.mostRecentCall.args[1]); +      expect(scope.asyncFn).toHaveBeenCalledWith('misko', scope.asyncFn.mostRecentCall.args[1]);        assertTrue(scope.$element.hasClass('ng-input-indicator-wait'));        scope.asyncFn.mostRecentCall.args[1]('myError', {id: 1234, data:'data'});        assertFalse(scope.$element.hasClass('ng-input-indicator-wait')); | 
