From f86de229d58b6512a072932dde32ef6f50c9beba Mon Sep 17 00:00:00 2001 From: Enea Jahollari Date: Thu, 28 Sep 2023 18:22:15 +0200 Subject: [PATCH] fix ItemGridElementComponent tests --- .../item-types/item/item-grid-element.component.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/shared/object-grid/item-grid-element/item-types/item/item-grid-element.component.spec.ts b/src/app/shared/object-grid/item-grid-element/item-types/item/item-grid-element.component.spec.ts index 70127c333c..c66b628c5c 100644 --- a/src/app/shared/object-grid/item-grid-element/item-types/item/item-grid-element.component.spec.ts +++ b/src/app/shared/object-grid/item-grid-element/item-types/item/item-grid-element.component.spec.ts @@ -12,6 +12,9 @@ import { buildPaginatedList } from '../../../../../core/data/paginated-list.mode import { PageInfo } from '../../../../../core/shared/page-info.model'; import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service'; import { DSONameServiceMock } from '../../../../mocks/dso-name.service.mock'; +import { + ItemSearchResultGridElementComponent +} from '../../../search-result-grid-element/item-search-result/item/item-search-result-grid-element.component'; const mockItem = Object.assign(new Item(), { bundles: createSuccessfulRemoteDataObject$(buildPaginatedList(new PageInfo(), [])), @@ -60,7 +63,8 @@ describe('ItemGridElementComponent', () => { ], schemas: [NO_ERRORS_SCHEMA] }).overrideComponent(ItemGridElementComponent, { - set: { changeDetection: ChangeDetectionStrategy.Default } + add: { changeDetection: ChangeDetectionStrategy.Default }, + remove: { imports: [ItemSearchResultGridElementComponent]} }).compileComponents(); }));