@@ -17,14 +17,32 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
1717import { HeaderComponent } from './header.component' ;
1818import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
1919import { MaterialModule } from '../material.module' ;
20+ import { ActivatedRoute } from '@angular/router' ;
21+ import { AppModule , SelectedRegistrarModule } from '../app.module' ;
22+ import { AppRoutingModule } from '../app-routing.module' ;
23+ import { BackendService } from '../shared/services/backend.service' ;
24+ import { provideHttpClient } from '@angular/common/http' ;
25+ import { provideHttpClientTesting } from '@angular/common/http/testing' ;
2026
2127describe ( 'HeaderComponent' , ( ) => {
2228 let component : HeaderComponent ;
2329 let fixture : ComponentFixture < HeaderComponent > ;
2430
2531 beforeEach ( async ( ) => {
2632 await TestBed . configureTestingModule ( {
27- imports : [ MaterialModule , BrowserAnimationsModule ] ,
33+ imports : [
34+ SelectedRegistrarModule ,
35+ MaterialModule ,
36+ BrowserAnimationsModule ,
37+ AppRoutingModule ,
38+ AppModule ,
39+ ] ,
40+ providers : [
41+ BackendService ,
42+ { provide : ActivatedRoute , useValue : { } as ActivatedRoute } ,
43+ provideHttpClient ( ) ,
44+ provideHttpClientTesting ( ) ,
45+ ] ,
2846 declarations : [ HeaderComponent ] ,
2947 } ) . compileComponents ( ) ;
3048
0 commit comments