File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
frontend/src/angular/src/app Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1313import { provideHttpClient , withInterceptorsFromDi } from "@angular/common/http" ;
1414import { TestBed , waitForAsync } from "@angular/core/testing" ;
1515import { RouterTestingModule } from "@angular/router/testing" ;
16- import { NgxServiceModule } from "ngx-simple-charts/base-service" ;
16+ import { NgxServiceModule , TokenService } from "ngx-simple-charts/base-service" ;
1717import { AppComponent } from "./app.component" ;
1818
1919describe ( "AppComponent" , ( ) => {
2020 beforeEach ( waitForAsync ( ( ) => {
21- TestBed . configureTestingModule ( {
22- declarations : [ AppComponent ] ,
23- imports : [ RouterTestingModule ,
21+ TestBed . configureTestingModule ( {
22+ imports : [ RouterTestingModule , AppComponent ,
2423 NgxServiceModule . forRoot ( {
2524 tokenRefreshPath : "/rest/auth/refreshToken" ,
2625 logoutPath : "/rest/auth/logout" ,
2726 loginRoute : "/" ,
2827 } ) ] ,
29- providers : [ provideHttpClient ( withInterceptorsFromDi ( ) ) ]
28+ providers : [ provideHttpClient ( withInterceptorsFromDi ( ) ) , TokenService ]
3029} ) . compileComponents ( ) ;
3130 } ) ) ;
3231 it ( "should create the app" , waitForAsync ( ( ) => {
You can’t perform that action at this time.
0 commit comments