diff --git a/public/docs/ts/latest/guide/dependency-injection.jade b/public/docs/ts/latest/guide/dependency-injection.jade index 25ca3c90b4..5a99375960 100644 --- a/public/docs/ts/latest/guide/dependency-injection.jade +++ b/public/docs/ts/latest/guide/dependency-injection.jade @@ -302,10 +302,10 @@ include ../../../../_includes/_util-fns Mission accomplished! We don't even need the Angular Dependency Injection system to test the `HeroesComponent`. We simply create a bew `HeroesComponent` with a mock service and poke at it: ``` - it("should have heroes when created") { + it("should have heroes when created", () => { let hc = new HeroesComponent(mockService); expect(hc.heroes.length).toEqual(mockService.getHeroes().length); - } + }) ``` ### When the service needs a service Our `HeroService` is very simple. It doesn't have any dependencies of its own.