import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ErrorDialogComponent } from './error-dialog.component'; import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; import { RouterTestingModule } from '@angular/router/testing'; import { WptDialogRef } from '@arrow/warpaint/dialog'; describe('ErrorDialogComponent', () => { let component: ErrorDialogComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA], declarations: [ErrorDialogComponent], imports: [RouterTestingModule], providers: [{ provide: WptDialogRef, useValue: {} }] }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(ErrorDialogComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });