fix CreateItemParentSelectorComponent tests

This commit is contained in:
Enea Jahollari
2023-09-27 13:22:42 +02:00
parent b2ffc87831
commit b2f04ca379

View File

@@ -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();
}));