import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ErrorComponent } from './error.component'; describe('ErrorComponent', () => { let component: ErrorComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ ErrorComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(ErrorComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should be created', () => { expect(component).toBeTruthy(); }); });