From fcfc6b33ddb25016fff975f3d28adbc7f472e896 Mon Sep 17 00:00:00 2001 From: Soumya Ranjan Mohanty Date: Tue, 3 Jan 2017 19:03:05 +0530 Subject: [PATCH] docs(guide/Services): fix jasmine2.X tracking property --- docs/content/guide/services.ngdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]); }); ```