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