From f1a4583b1344c3df09d3ab9eff8a93eba1c97794 Mon Sep 17 00:00:00 2001 From: MichalKinas Date: Wed, 25 Oct 2023 13:16:06 +0200 Subject: [PATCH] Unit test fix --- .../src/lib/components/files/files.component.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/aca-content/src/lib/components/files/files.component.spec.ts b/projects/aca-content/src/lib/components/files/files.component.spec.ts index 46b709853b..3e53beb5d3 100644 --- a/projects/aca-content/src/lib/components/files/files.component.spec.ts +++ b/projects/aca-content/src/lib/components/files/files.component.spec.ts @@ -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);