diff --git a/src/app/core/services/sparque-api/sparque-api.service.spec.ts b/src/app/core/services/sparque-api/sparque-api.service.spec.ts index d7e98e5d30..beeeb14a03 100644 --- a/src/app/core/services/sparque-api/sparque-api.service.spec.ts +++ b/src/app/core/services/sparque-api/sparque-api.service.spec.ts @@ -3,7 +3,6 @@ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/ import { TestBed } from '@angular/core/testing'; import { Action, Store } from '@ngrx/store'; import { MockStore, provideMockStore } from '@ngrx/store/testing'; -import { UrlHelperService } from 'angular-oauth2-oidc'; import { BehaviorSubject, noop } from 'rxjs'; import { anything, capture, instance, mock, spy, verify, when } from 'ts-mockito'; @@ -18,7 +17,6 @@ import { getRestEndpoint, getSparqueConfig, } from 'ish-core/store/core/configuration'; -import { CoreStoreModule } from 'ish-core/store/core/core-store.module'; import { serverError } from 'ish-core/store/core/error'; import { isServerConfigurationLoaded } from 'ish-core/store/core/server-config'; import { getPGID } from 'ish-core/store/customer/user'; @@ -234,7 +232,6 @@ describe('Sparque Api Service', () => { let httpTestingController: HttpTestingController; const apiTokenServiceMock = mock(ApiTokenService); const tokenServiceMock = mock(TokenService); - const urlHelperServiceMock = mock(UrlHelperService); beforeEach(() => { TestBed.configureTestingModule({ @@ -242,7 +239,6 @@ describe('Sparque Api Service', () => { providers: [ { provide: ApiTokenService, useFactory: () => instance(apiTokenServiceMock) }, { provide: TokenService, useFactory: () => instance(tokenServiceMock) }, - { provide: UrlHelperService, useFactory: () => instance(urlHelperServiceMock) }, provideMockStore({ selectors: [ { selector: isServerConfigurationLoaded, value: true }, @@ -293,7 +289,7 @@ describe('Sparque Api Service', () => { beforeEach(() => { TestBed.configureTestingModule({ // https://angular.io/guide/http#testing-http-requests - imports: [CoreStoreModule.forTesting(['configuration', 'serverConfig']), HttpClientTestingModule], + imports: [HttpClientTestingModule], providers: [ { provide: ApiTokenService, useFactory: () => instance(apiTokenServiceMock) }, { provide: TokenService, useFactory: () => instance(mock(TokenService)) },