From 2e5199997c77cb2febed4ff21bc12a5d5fbad4ce Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 31 May 2011 10:32:54 +0200 Subject: Rename deprecated wasCalled() -> toHaveBeenCalled() in all specs As well as wasNotCalled(), wasCalledWith(), wasNotCalledWith() --- test/JsonSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/JsonSpec.js') 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(); }); -- cgit v1.2.3