From 1797898f90e8bcd0fe59ae7ded0e39e1cabf9ab8 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 19 Oct 2015 23:48:46 +0100 Subject: [PATCH] docs(di): fix code snippet --- public/docs/ts/latest/guide/dependency-injection.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.