Skip to content

Commit

Permalink
[DURACOM-191] fix missing imports and providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Barbasso committed Jan 24, 2024
1 parent 1afec99 commit 4ecfdf2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemBitstreamsComponent>;
Expand Down Expand Up @@ -165,7 +170,15 @@ describe('ItemBitstreamsComponent', () => {
], schemas: [
NO_ERRORS_SCHEMA
]
}).compileComponents();
})
.overrideComponent(ItemBitstreamsComponent, {
remove: {
imports: [ItemEditBitstreamBundleComponent,
ItemEditBitstreamDragHandleComponent,
ThemedLoadingComponent]
}
})
.compileComponents();
}));

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -42,10 +44,12 @@ import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.c
ItemEditBitstreamBundleComponent,
RouterLink,
NgIf,
VarDirective,
ItemEditBitstreamDragHandleComponent,
NgForOf,
ThemedLoadingComponent
],
providers: [ObjectValuesPipe],
standalone: true
})
/**
Expand Down

0 comments on commit 4ecfdf2

Please sign in to comment.