diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 7bb264edc..f4079ef96 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(); }));