mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2025-04-12 04:19:18 +00:00
* BETTERZON-83: Making pre-generated unit tests work * BETTERZON-83: Writing unit tests for angular to improve code coverage
30 lines
888 B
TypeScript
30 lines
888 B
TypeScript
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
|
|
|
import {ProductDetailPageComponent} from './product-detail-page.component';
|
|
import {RouterTestingModule} from "@angular/router/testing";
|
|
|
|
describe('ProductDetailPageComponent', () => {
|
|
let component: ProductDetailPageComponent;
|
|
let fixture: ComponentFixture<ProductDetailPageComponent>;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
declarations: [ProductDetailPageComponent],
|
|
imports: [
|
|
RouterTestingModule
|
|
]
|
|
})
|
|
.compileComponents();
|
|
});
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(ProductDetailPageComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|