Unit tests fixed

This commit is contained in:
Piotr Pekala 2019-05-21 23:31:19 -07:00
parent fd6393acf7
commit d7b73b4653

View File

@ -7,6 +7,7 @@ import { SettingsService } from './services/settings.service';
import { PersistenceService } from 'angular-persistence';
import { ElectronService, NgxElectronModule } from 'ngx-electron';
import createSpyObj = jasmine.createSpyObj;
import { NO_ERRORS_SCHEMA } from '@angular/core';
describe('AppComponent', () => {
let component: AppComponent;
@ -18,7 +19,8 @@ describe('AppComponent', () => {
TestBed.configureTestingModule({
declarations: [AppComponent],
imports: [RouterTestingModule, MatIconModule, NgxElectronModule],
providers: [SettingsService, PersistenceService]
providers: [SettingsService, PersistenceService],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
electronService = TestBed.get(ElectronService);