mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Use latest JS-API and ADF (#3494)
* Use latest JS-API and ADF * Unit test fix
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
"peerDependencies": {
|
||||
"@angular/common": ">=14.1.0",
|
||||
"@angular/core": ">=14.1.0",
|
||||
"@alfresco/adf-core": ">=6.4.0-6497510485",
|
||||
"@alfresco/adf-content-services": ">=6.4.0-6497510485",
|
||||
"@alfresco/adf-extensions": ">=6.4.0-6497510485",
|
||||
"@alfresco/js-api": ">=7.1.0-1384",
|
||||
"@alfresco/adf-core": ">=6.4.0-6638624919",
|
||||
"@alfresco/adf-content-services": ">=6.4.0-6638624919",
|
||||
"@alfresco/adf-extensions": ">=6.4.0-6638624919",
|
||||
"@alfresco/js-api": ">=7.1.0-1437",
|
||||
"@angular/animations": ">=14.1.3",
|
||||
"@angular/cdk": ">=14.1.3",
|
||||
"@angular/forms": ">=14.1.3",
|
||||
|
@@ -33,6 +33,7 @@ import { AppExtensionService, ContentApiService } from '@alfresco/aca-shared';
|
||||
import { of, Subject, throwError } from 'rxjs';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { NodeEntry, NodePaging, Node, PathElement } from '@alfresco/js-api';
|
||||
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||
|
||||
describe('FilesComponent', () => {
|
||||
let node;
|
||||
@@ -87,7 +88,7 @@ describe('FilesComponent', () => {
|
||||
fixture = TestBed.createComponent(FilesComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
||||
const documentListService = TestBed.inject(DocumentListService);
|
||||
const documentListService: DocumentListService = TestBed.inject(DocumentListService);
|
||||
const fakeNodeEntry: NodeEntry = { entry: { id: 'fake-node-entry' } } as NodeEntry;
|
||||
const fakeNodePaging: NodePaging = { list: { pagination: { count: 10, maxItems: 10, skipCount: 0 } } };
|
||||
const documentLoaderNode = { children: fakeNodePaging, currentNode: fakeNodeEntry };
|
||||
@@ -161,7 +162,7 @@ describe('FilesComponent', () => {
|
||||
desktopOnly: true,
|
||||
template: 'template',
|
||||
sortingKey: 'sorting-key'
|
||||
}
|
||||
} as DocumentListPresetRef
|
||||
];
|
||||
|
||||
extensions.filesDocumentListPreset$ = of(filesDocumentListPresetMock);
|
||||
|
Reference in New Issue
Block a user