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