From 7c3eccf3f46593d540ad8ea9bf673f6e9f219072 Mon Sep 17 00:00:00 2001 From: Enea Jahollari Date: Wed, 27 Sep 2023 12:37:59 +0200 Subject: [PATCH] fix CreateCollectionParentSelectorComponent tests --- .../create-collection-parent-selector.component.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/shared/dso-selector/modal-wrappers/create-collection-parent-selector/create-collection-parent-selector.component.spec.ts b/src/app/shared/dso-selector/modal-wrappers/create-collection-parent-selector/create-collection-parent-selector.component.spec.ts index 95162f4cf4..86394d203b 100644 --- a/src/app/shared/dso-selector/modal-wrappers/create-collection-parent-selector/create-collection-parent-selector.component.spec.ts +++ b/src/app/shared/dso-selector/modal-wrappers/create-collection-parent-selector/create-collection-parent-selector.component.spec.ts @@ -8,6 +8,7 @@ import { Community } from '../../../../core/shared/community.model'; import { CreateCollectionParentSelectorComponent } from './create-collection-parent-selector.component'; import { MetadataValue } from '../../../../core/shared/metadata.models'; import { createSuccessfulRemoteDataObject } from '../../../remote-data.utils'; +import { DSOSelectorComponent } from '../../dso-selector/dso-selector.component'; describe('CreateCollectionParentSelectorComponent', () => { let component: CreateCollectionParentSelectorComponent; @@ -50,7 +51,11 @@ describe('CreateCollectionParentSelectorComponent', () => { } ], schemas: [NO_ERRORS_SCHEMA] -}).compileComponents(); +}) + .overrideComponent(CreateCollectionParentSelectorComponent, { + remove: { imports: [DSOSelectorComponent]} + }) + .compileComponents(); }));