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