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