ACS-8770: imports adjust after project structure change

This commit is contained in:
Anton Ramanovich
2025-06-16 12:37:32 +02:00
parent e6b1d06149
commit 3cd7539c56
3 changed files with 4 additions and 4 deletions

View File

@@ -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<HttpHeaders> {

View File

@@ -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<boolean>(() => false);

View File

@@ -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