mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fix ExportMetadataSelectorComponent tests
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
} from '../../../remote-data.utils';
|
||||
import { ExportMetadataSelectorComponent } from './export-metadata-selector.component';
|
||||
import { AuthorizationDataService } from '../../../../core/data/feature-authorization/authorization-data.service';
|
||||
import { DSOSelectorComponent } from '../../dso-selector/dso-selector.component';
|
||||
|
||||
// No way to add entryComponents yet to testbed; alternative implemented; source: https://stackoverflow.com/questions/41689468/how-to-shallow-test-a-component-with-an-entrycomponents
|
||||
@NgModule({
|
||||
@@ -122,7 +123,11 @@ describe('ExportMetadataSelectorComponent', () => {
|
||||
}
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
}).compileComponents();
|
||||
})
|
||||
.overrideComponent(ExportMetadataSelectorComponent, {
|
||||
remove: { imports: [DSOSelectorComponent] }
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
}));
|
||||
|
||||
|
Reference in New Issue
Block a user