aboutsummaryrefslogtreecommitdiffstats
path: root/test/JsonSpec.js
diff options
context:
space:
mode:
authorVojta Jina2011-05-31 10:32:54 +0200
committerVojta Jina2011-05-31 10:32:54 +0200
commit2e5199997c77cb2febed4ff21bc12a5d5fbad4ce (patch)
treeda57107e2e07e5d160af0383cbd86ee2fbc94c80 /test/JsonSpec.js
parentb2f5299e0e3d6e4892b7fcc37686012147bf0afa (diff)
downloadangular.js-2e5199997c77cb2febed4ff21bc12a5d5fbad4ce.tar.bz2
Rename deprecated wasCalled() -> toHaveBeenCalled() in all specs
As well as wasNotCalled(), wasCalledWith(), wasNotCalledWith()
Diffstat (limited to 'test/JsonSpec.js')
-rw-r--r--test/JsonSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/JsonSpec.js b/test/JsonSpec.js
index 4a160905..2067d88f 100644
--- a/test/JsonSpec.js
+++ b/test/JsonSpec.js
@@ -140,10 +140,10 @@ describe('json', function(){
var spy = this.spyOn(JSON, 'parse').andCallThrough();
expect(fromJson('{}')).toEqual({});
- expect(spy).wasNotCalled();
+ expect(spy).not.toHaveBeenCalled();
expect(fromJson('{}', true)).toEqual({});
- expect(spy).wasCalled();
+ expect(spy).toHaveBeenCalled();
});