fix CreateCollectionParentSelectorComponent tests

This commit is contained in:
Enea Jahollari
2023-09-27 12:37:59 +02:00
parent 0a05118323
commit 7c3eccf3f4

View File

@@ -8,6 +8,7 @@ import { Community } from '../../../../core/shared/community.model';
import { CreateCollectionParentSelectorComponent } from './create-collection-parent-selector.component'; import { CreateCollectionParentSelectorComponent } from './create-collection-parent-selector.component';
import { MetadataValue } from '../../../../core/shared/metadata.models'; import { MetadataValue } from '../../../../core/shared/metadata.models';
import { createSuccessfulRemoteDataObject } from '../../../remote-data.utils'; import { createSuccessfulRemoteDataObject } from '../../../remote-data.utils';
import { DSOSelectorComponent } from '../../dso-selector/dso-selector.component';
describe('CreateCollectionParentSelectorComponent', () => { describe('CreateCollectionParentSelectorComponent', () => {
let component: CreateCollectionParentSelectorComponent; let component: CreateCollectionParentSelectorComponent;
@@ -50,7 +51,11 @@ describe('CreateCollectionParentSelectorComponent', () => {
} }
], ],
schemas: [NO_ERRORS_SCHEMA] schemas: [NO_ERRORS_SCHEMA]
}).compileComponents(); })
.overrideComponent(CreateCollectionParentSelectorComponent, {
remove: { imports: [DSOSelectorComponent]}
})
.compileComponents();
})); }));