Skip to content

Commit 75256ea

Browse files
Update service.md
Update line numbers in the explanation of how to test a service.
1 parent 53e8c36 commit 75256ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/v3.7.0/tutorial/service.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,14 @@ module('Unit | Service | maps', function(hooks) {
273273
```
274274

275275
When the service calls `createMap` on our fake utility `stubMapUtil`, we will run asserts to validate that it is called.
276-
In our first test notice that we expect four asserts to be run in line 18. Two of the asserts run in the test function, while the other two are run when `createMap` is called.
276+
In our first test notice that we expect five asserts to be run in line 17. Two of the asserts run in the test function, while the other two are run when `createMap` is called.
277277

278-
In the second test, only one assert is expected (line 33), since the map element is fetched from cache and does not use the utility.
278+
In the second test, only one assert is expected (line 38), since the map element is fetched from cache and does not use the utility.
279279

280280
Also, note that the second test uses a dummy object as the returned map element (defined on line 5).
281-
Our map element can be substituted with any object because we are only asserting that the cache has been accessed (see line 39).
281+
Our map element can be substituted with any object because we are only asserting that the cache has been accessed (see line 44).
282282

283-
The location in the cache has been [`camelized`](https://www.emberjs.com/api/ember/release/classes/String/methods/camelize?anchor=camelize) (line 30),
283+
The location in the cache has been [`camelized`](https://www.emberjs.com/api/ember/release/classes/String/methods/camelize?anchor=camelize) (line 40),
284284
so that it may be used as a key to look up our element.
285285
This matches the behavior in `getMapElement` when city has not yet been cached.
286286

0 commit comments

Comments
 (0)