diff --git a/docs/content/guide/services.ngdoc b/docs/content/guide/services.ngdoc index 5c02774cf9a5..3659f6612279 100644 --- a/docs/content/guide/services.ngdoc +++ b/docs/content/guide/services.ngdoc @@ -221,8 +221,8 @@ it('should clear messages after alert', function() { notify('two'); notify('third'); - expect(mock.alert.callCount).toEqual(2); - expect(mock.alert.mostRecentCall.args).toEqual(["more\ntwo\nthird"]); + expect(mock.alert.calls.count()).toEqual(2); + expect(mock.alert.calls.mostRecent().args).toEqual(["more\ntwo\nthird"]); }); ```