fix/ karma Unit test

This commit is contained in:
Maxime GRIS
2017-06-08 13:04:19 +02:00
parent db7972aca4
commit ea13d6d2e1

View File

@@ -1,6 +1,7 @@
import { TestBed, async } from '@angular/core/testing'; import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { ElectronService } from 'app/providers/electron.service';
describe('AppComponent', () => { describe('AppComponent', () => {
beforeEach(async(() => { beforeEach(async(() => {
@@ -8,6 +9,10 @@ describe('AppComponent', () => {
declarations: [ declarations: [
AppComponent AppComponent
], ],
providers : [
ElectronService
],
imports: [RouterTestingModule]
}).compileComponents(); }).compileComponents();
})); }));