Skip to content

Commit 1797898

Browse files
0x-r4bbitnaomiblack
authored andcommitted
docs(di): fix code snippet
1 parent bf1437e commit 1797898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/docs/ts/latest/guide/dependency-injection.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ include ../../../../_includes/_util-fns
302302
Mission accomplished! We don't even need the Angular Dependency Injection system to test the `HeroesComponent`.
303303
We simply create a bew `HeroesComponent` with a mock service and poke at it:
304304
```
305-
it("should have heroes when created") {
305+
it("should have heroes when created", () => {
306306
let hc = new HeroesComponent(mockService);
307307
expect(hc.heroes.length).toEqual(mockService.getHeroes().length);
308-
}
308+
})
309309
```
310310
### When the service needs a service
311311
Our `HeroService` is very simple. It doesn't have any dependencies of its own.

0 commit comments

Comments
 (0)