Skip to content

Commit b384c91

Browse files
bazzelJen Weber
authored andcommitted
Update service.md (ember-learn#561)
Replace 'Google map' w/ 'map'.
1 parent 1b49eb1 commit b384c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/v3.7.0/tutorial/service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ and are intended for testing specific logic within a class.
212212

213213
For our service unit test, we'll want to verify that locations that have been previously loaded are fetched from cache, while new locations are created the third party map service.
214214
We will isolate our tests from actually calling Leaflet Maps by stubbing the map service.
215-
On line 19 of `map-element-test.js` below we create a JavaScript object to simulate the behavior of the utility, but instead of creating a Google map, we return an empty JavaScript object.
215+
On line 19 of `map-element-test.js` below we create a JavaScript object to simulate the behavior of the utility, but instead of creating a map, we return an empty JavaScript object.
216216

217217
To instantiate the service, we can instantiate it through ember's resolver using the [`factoryFor`](https://emberjs.com/api/ember/release/classes/ApplicationInstance/methods/factoryFor?anchor=factoryFor) method.
218218
`factoryFor` allows us to have control over the creation of the service in Ember, to pass arguments to the constructor that can override parts of the service for our tests.

0 commit comments

Comments
 (0)