From b2f04ca379566b217b799e9a20dcbf26ec001a64 Mon Sep 17 00:00:00 2001 From: Enea Jahollari Date: Wed, 27 Sep 2023 13:22:42 +0200 Subject: [PATCH] fix CreateItemParentSelectorComponent tests --- .../create-item-parent-selector.component.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/create-item-parent-selector.component.spec.ts b/src/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/create-item-parent-selector.component.spec.ts index 4629cf2456..062d16e23f 100644 --- a/src/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/create-item-parent-selector.component.spec.ts +++ b/src/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/create-item-parent-selector.component.spec.ts @@ -8,6 +8,9 @@ import { Collection } from '../../../../core/shared/collection.model'; import { CreateItemParentSelectorComponent } from './create-item-parent-selector.component'; import { MetadataValue } from '../../../../core/shared/metadata.models'; import { createSuccessfulRemoteDataObject } from '../../../remote-data.utils'; +import { + AuthorizedCollectionSelectorComponent +} from '../../dso-selector/authorized-collection-selector/authorized-collection-selector.component'; describe('CreateItemParentSelectorComponent', () => { let component: CreateItemParentSelectorComponent; @@ -48,7 +51,11 @@ describe('CreateItemParentSelectorComponent', () => { } ], schemas: [NO_ERRORS_SCHEMA] -}).compileComponents(); +}) + .overrideComponent(CreateItemParentSelectorComponent, { + remove: { imports: [AuthorizedCollectionSelectorComponent]} + }) + .compileComponents(); }));