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