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/service/xhrSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/service/xhrSpec.js') diff --git a/test/service/xhrSpec.js b/test/service/xhrSpec.js index 39bc1c66..ebcd90d4 100644 --- a/test/service/xhrSpec.js +++ b/test/service/xhrSpec.js @@ -60,7 +60,7 @@ describe('$xhr', function() { $xhr('GET', '/reqGET', null, function(){ throw "MyException"; }); $browserXhr.flush(); - expect($log.error).wasCalledWith("MyException"); + expect($log.error).toHaveBeenCalledWith("MyException"); }); -- cgit v1.2.3