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