From ea13d6d2e13a2b68f924694fd67d64d617eeada8 Mon Sep 17 00:00:00 2001 From: Maxime GRIS Date: Thu, 8 Jun 2017 13:04:19 +0200 Subject: [PATCH] fix/ karma Unit test --- src/app/app.component.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 7bb264e..f4079ef 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -1,6 +1,7 @@ import { TestBed, async } from '@angular/core/testing'; - +import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; +import { ElectronService } from 'app/providers/electron.service'; describe('AppComponent', () => { beforeEach(async(() => { @@ -8,6 +9,10 @@ describe('AppComponent', () => { declarations: [ AppComponent ], + providers : [ + ElectronService + ], + imports: [RouterTestingModule] }).compileComponents(); }));