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