import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { RouterTestingModule } from '@angular/router/testing'; import { UnpostedComponent } from './unposted.component'; describe('UnpostedComponent', () => { let component: UnpostedComponent; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [HttpClientModule, RouterTestingModule], declarations: [UnpostedComponent], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(UnpostedComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });