Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 090a839

Browse files
webgenegkalpak
authored andcommitted
docs(guide/services): fix syntax for Jasmine v2.x
Closes #15570
1 parent 5294d20 commit 090a839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/services.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ it('should clear messages after alert', function() {
221221
notify('two');
222222
notify('third');
223223

224-
expect(mock.alert.callCount).toEqual(2);
225-
expect(mock.alert.mostRecentCall.args).toEqual(["more\ntwo\nthird"]);
224+
expect(mock.alert.calls.count()).toEqual(2);
225+
expect(mock.alert.calls.mostRecent().args).toEqual(["more\ntwo\nthird"]);
226226
});
227227
```
228228

0 commit comments

Comments
 (0)