Skip to content

Commit 5f2d326

Browse files
committed
fix: build
1 parent a1a54b6 commit 5f2d326

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

frontend/src/angular/src/app/app.component.spec.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@
1313
import { provideHttpClient, withInterceptorsFromDi } from "@angular/common/http";
1414
import { TestBed, waitForAsync } from "@angular/core/testing";
1515
import { RouterTestingModule } from "@angular/router/testing";
16-
import { NgxServiceModule } from "ngx-simple-charts/base-service";
16+
import { NgxServiceModule, TokenService } from "ngx-simple-charts/base-service";
1717
import { AppComponent } from "./app.component";
1818

1919
describe("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(() => {

0 commit comments

Comments
 (0)