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