From bf00696eb5641e76d894c5e1ceaff9410b78669c Mon Sep 17 00:00:00 2001 From: MichalKinas Date: Tue, 3 Oct 2023 09:02:35 +0200 Subject: [PATCH] [ACS-5601] Unit test fix --- .../name-column/name-column.component.spec.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.spec.ts b/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.spec.ts index e648a41523..197725e7ce 100644 --- a/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.spec.ts +++ b/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.spec.ts @@ -32,6 +32,7 @@ import { AppExtensionService } from '@alfresco/aca-shared'; import { of } from 'rxjs'; import { ContentActionType } from '@alfresco/adf-extensions'; import { By } from '@angular/platform-browser'; +import { INITIAL_APP_STATE } from '../../../store/initial-state'; describe('CustomNameColumnComponent', () => { let fixture: ComponentFixture; @@ -40,7 +41,19 @@ describe('CustomNameColumnComponent', () => { beforeEach(() => { TestBed.configureTestingModule({ - imports: [HttpClientModule, TranslateModule.forRoot(), CustomNameColumnComponent, StoreModule.forRoot({ app: () => {} }, { initialState: {} })], + imports: [ + HttpClientModule, + TranslateModule.forRoot(), + CustomNameColumnComponent, + StoreModule.forRoot( + { app: (state) => state }, + { + initialState: { + app: INITIAL_APP_STATE + } + } + ) + ], providers: [Actions] });