import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { PurchaseEntriesComponent } from './purchase-entries.component'; describe('PurchaseEntriesComponent', () => { let component: PurchaseEntriesComponent; let fixture: ComponentFixture; beforeEach( waitForAsync(() => { TestBed.configureTestingModule({ imports: [ReactiveFormsModule, RouterTestingModule], declarations: [PurchaseEntriesComponent], }).compileComponents(); }), ); beforeEach(() => { fixture = TestBed.createComponent(PurchaseEntriesComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });