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