From d7b73b4653416be81d9e4a810a8373ddcca78711 Mon Sep 17 00:00:00 2001 From: Piotr Pekala Date: Tue, 21 May 2019 23:31:19 -0700 Subject: [PATCH] Unit tests fixed --- src/app/app.component.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 96c4372f..2cd79325 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -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);