diff --git a/lib/core/auth/src/authentication-interceptor/authentication.interceptor.spec.ts b/lib/core/auth/src/authentication-interceptor/authentication.interceptor.spec.ts index 8a8c925d93..9f79097ce3 100644 --- a/lib/core/auth/src/authentication-interceptor/authentication.interceptor.spec.ts +++ b/lib/core/auth/src/authentication-interceptor/authentication.interceptor.spec.ts @@ -18,8 +18,9 @@ import { HttpHandler, HttpHeaders, HttpRequest } from '@angular/common/http'; import { TestBed } from '@angular/core/testing'; import { Observable, of } from 'rxjs'; -import { Authentication } from '../authentication'; + import { AuthenticationInterceptor, SHOULD_ADD_AUTH_TOKEN } from './authentication.interceptor'; +import { Authentication } from '@alfresco/adf-core'; class MockAuthentication extends Authentication { addTokenToHeader(_: string, httpHeaders: HttpHeaders): Observable { diff --git a/lib/core/auth/src/authentication-interceptor/authentication.interceptor.ts b/lib/core/auth/src/authentication-interceptor/authentication.interceptor.ts index 03824ac868..0f47b76bc9 100644 --- a/lib/core/auth/src/authentication-interceptor/authentication.interceptor.ts +++ b/lib/core/auth/src/authentication-interceptor/authentication.interceptor.ts @@ -30,7 +30,7 @@ import { import { Injectable } from '@angular/core'; import { Observable, throwError as observableThrowError } from 'rxjs'; import { catchError, mergeMap } from 'rxjs/operators'; -import { Authentication } from '../authentication'; +import { Authentication } from '@alfresco/adf-core'; export const SHOULD_ADD_AUTH_TOKEN = new HttpContextToken(() => false); diff --git a/lib/insights/src/lib/testing/insights.testing.module.ts b/lib/insights/src/lib/testing/insights.testing.module.ts index 3e5a92f5ae..054fba2ee5 100644 --- a/lib/insights/src/lib/testing/insights.testing.module.ts +++ b/lib/insights/src/lib/testing/insights.testing.module.ts @@ -22,9 +22,8 @@ import { AlfrescoApiService, AlfrescoApiServiceMock } from '@alfresco/adf-conten import { AdfHttpClient } from '@alfresco/adf-core/api'; @NgModule({ - imports: [AuthModule.forRoot({ useHash: true }), NoopAnimationsModule, NoopTranslateModule, HttpClientTestingModule], + imports: [AuthModule.forRoot({ useHash: true }), NoopAnimationsModule, NoopTranslateModule], providers: [ - { provide: JWT_STORAGE_SERVICE, useClass: StorageService }, { provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }, { provide: AppConfigService, useClass: AppConfigServiceMock }, // TODO: remove this as soon as unit test not using jasmine.Ajax