mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
Angular 18 upgrade
This commit is contained in:
parent
6f377b2a7e
commit
331b059afa
@ -22,20 +22,20 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { TestBed, ComponentFixture, fakeAsync, tick } from '@angular/core/testing';
|
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
|
||||||
import { AuthenticationService } from '@alfresco/adf-core';
|
import { AuthenticationService } from '@alfresco/adf-core';
|
||||||
import { UploadService, NodesApiService, DiscoveryApiService } from '@alfresco/adf-content-services';
|
import { DiscoveryApiService, NodesApiService, UploadService } from '@alfresco/adf-content-services';
|
||||||
import { ClosePreviewAction } from '@alfresco/aca-shared/store';
|
import { ClosePreviewAction } from '@alfresco/aca-shared/store';
|
||||||
import { PreviewComponent } from './preview.component';
|
import { PreviewComponent } from './preview.component';
|
||||||
import { of, throwError } from 'rxjs';
|
import { of, throwError } from 'rxjs';
|
||||||
import {
|
import {
|
||||||
ContentApiService,
|
|
||||||
AppHookService,
|
AppHookService,
|
||||||
DocumentBasePageService,
|
ContentApiService,
|
||||||
LibTestingModule,
|
|
||||||
discoveryApiServiceMockValue,
|
discoveryApiServiceMockValue,
|
||||||
DocumentBasePageServiceMock
|
DocumentBasePageService,
|
||||||
|
DocumentBasePageServiceMock,
|
||||||
|
LibTestingModule
|
||||||
} from '@alfresco/aca-shared';
|
} from '@alfresco/aca-shared';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
@ -58,7 +58,7 @@ describe('PreviewComponent', () => {
|
|||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [LibTestingModule, AcaViewerModule],
|
imports: [LibTestingModule, AcaViewerModule],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: DocumentBasePageService, useValue: DocumentBasePageServiceMock },
|
{ provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },
|
||||||
{ provide: DiscoveryApiService, useValue: discoveryApiServiceMockValue },
|
{ provide: DiscoveryApiService, useValue: discoveryApiServiceMockValue },
|
||||||
{ provide: AuthenticationService, useValue: {} }
|
{ provide: AuthenticationService, useValue: {} }
|
||||||
]
|
]
|
||||||
|
@ -22,20 +22,20 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { TestBed, ComponentFixture, fakeAsync, tick } from '@angular/core/testing';
|
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
|
||||||
import { AuthenticationService } from '@alfresco/adf-core';
|
import { AuthenticationService } from '@alfresco/adf-core';
|
||||||
import { UploadService, NodesApiService, DiscoveryApiService, DocumentListService } from '@alfresco/adf-content-services';
|
import { DiscoveryApiService, DocumentListService, NodesApiService, UploadService } from '@alfresco/adf-content-services';
|
||||||
import { ClosePreviewAction, RefreshPreviewAction, ViewNodeAction } from '@alfresco/aca-shared/store';
|
import { ClosePreviewAction, RefreshPreviewAction, ViewNodeAction } from '@alfresco/aca-shared/store';
|
||||||
import { AcaViewerComponent } from './viewer.component';
|
import { AcaViewerComponent } from './viewer.component';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import {
|
import {
|
||||||
ContentApiService,
|
|
||||||
AppHookService,
|
AppHookService,
|
||||||
DocumentBasePageService,
|
ContentApiService,
|
||||||
LibTestingModule,
|
|
||||||
discoveryApiServiceMockValue,
|
discoveryApiServiceMockValue,
|
||||||
DocumentBasePageServiceMock
|
DocumentBasePageService,
|
||||||
|
DocumentBasePageServiceMock,
|
||||||
|
LibTestingModule
|
||||||
} from '@alfresco/aca-shared';
|
} from '@alfresco/aca-shared';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
@ -69,7 +69,7 @@ describe('AcaViewerComponent', () => {
|
|||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [LibTestingModule, AcaViewerComponent],
|
imports: [LibTestingModule, AcaViewerComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: DocumentBasePageService, useValue: DocumentBasePageServiceMock },
|
{ provide: DocumentBasePageService, useClass: DocumentBasePageServiceMock },
|
||||||
{ provide: DiscoveryApiService, useValue: discoveryApiServiceMockValue },
|
{ provide: DiscoveryApiService, useValue: discoveryApiServiceMockValue },
|
||||||
{ provide: AuthenticationService, useValue: {} }
|
{ provide: AuthenticationService, useValue: {} }
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user