We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1437e commit 1797898Copy full SHA for 1797898
public/docs/ts/latest/guide/dependency-injection.jade
@@ -302,10 +302,10 @@ include ../../../../_includes/_util-fns
302
Mission accomplished! We don't even need the Angular Dependency Injection system to test the `HeroesComponent`.
303
We simply create a bew `HeroesComponent` with a mock service and poke at it:
304
```
305
- it("should have heroes when created") {
+ it("should have heroes when created", () => {
306
let hc = new HeroesComponent(mockService);
307
expect(hc.heroes.length).toEqual(mockService.getHeroes().length);
308
- }
+ })
309
310
### When the service needs a service
311
Our `HeroService` is very simple. It doesn't have any dependencies of its own.
0 commit comments