diff --git a/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.spec.ts b/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.spec.ts index f82765c68fe..14033abd4ea 100644 --- a/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.spec.ts +++ b/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.spec.ts @@ -26,6 +26,11 @@ import { createSuccessfulRemoteDataObject, createSuccessfulRemoteDataObject$ } f import { createPaginatedList } from '../../../shared/testing/utils.test'; import { FieldChangeType } from '../../../core/data/object-updates/field-change-type.model'; import { BitstreamDataServiceStub } from '../../../shared/testing/bitstream-data-service.stub'; +import { ItemEditBitstreamBundleComponent } from './item-edit-bitstream-bundle/item-edit-bitstream-bundle.component'; +import { + ItemEditBitstreamDragHandleComponent +} from './item-edit-bitstream-drag-handle/item-edit-bitstream-drag-handle.component'; +import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component'; let comp: ItemBitstreamsComponent; let fixture: ComponentFixture; @@ -165,7 +170,15 @@ describe('ItemBitstreamsComponent', () => { ], schemas: [ NO_ERRORS_SCHEMA ] -}).compileComponents(); +}) + .overrideComponent(ItemBitstreamsComponent, { + remove: { + imports: [ItemEditBitstreamBundleComponent, + ItemEditBitstreamDragHandleComponent, + ThemedLoadingComponent] + } + }) + .compileComponents(); })); beforeEach(() => { diff --git a/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.ts b/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.ts index b02d2f2571b..c9fe5d48719 100644 --- a/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.ts +++ b/src/app/item-page/edit-item-page/item-bitstreams/item-bitstreams.component.ts @@ -31,6 +31,8 @@ import { ItemEditBitstreamDragHandleComponent } from './item-edit-bitstream-drag-handle/item-edit-bitstream-drag-handle.component'; import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.component'; +import { VarDirective } from '../../../shared/utils/var.directive'; +import { ObjectValuesPipe } from '../../../shared/utils/object-values-pipe'; @Component({ selector: 'ds-item-bitstreams', @@ -42,10 +44,12 @@ import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.c ItemEditBitstreamBundleComponent, RouterLink, NgIf, + VarDirective, ItemEditBitstreamDragHandleComponent, NgForOf, ThemedLoadingComponent ], + providers: [ObjectValuesPipe], standalone: true }) /**