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