mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fix ExistingRelationListElementComponent tests
This commit is contained in:
@@ -14,6 +14,10 @@ import { ReorderableRelationship } from '../existing-metadata-list-element/exist
|
|||||||
import { createSuccessfulRemoteDataObject$ } from '../../../../remote-data.utils';
|
import { createSuccessfulRemoteDataObject$ } from '../../../../remote-data.utils';
|
||||||
import { SubmissionService } from '../../../../../submission/submission.service';
|
import { SubmissionService } from '../../../../../submission/submission.service';
|
||||||
import { SubmissionServiceStub } from '../../../../testing/submission-service.stub';
|
import { SubmissionServiceStub } from '../../../../testing/submission-service.stub';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import {
|
||||||
|
ListableObjectComponentLoaderComponent
|
||||||
|
} from '../../../../object-collection/shared/listable-object/listable-object-component-loader.component';
|
||||||
|
|
||||||
describe('ExistingRelationListElementComponent', () => {
|
describe('ExistingRelationListElementComponent', () => {
|
||||||
let component: ExistingRelationListElementComponent;
|
let component: ExistingRelationListElementComponent;
|
||||||
@@ -65,7 +69,10 @@ describe('ExistingRelationListElementComponent', () => {
|
|||||||
beforeEach(waitForAsync(() => {
|
beforeEach(waitForAsync(() => {
|
||||||
init();
|
init();
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [ExistingRelationListElementComponent],
|
imports: [
|
||||||
|
TranslateModule.forRoot(),
|
||||||
|
ExistingRelationListElementComponent
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: SelectableListService, useValue: selectionService },
|
{ provide: SelectableListService, useValue: selectionService },
|
||||||
{ provide: Store, useValue: store },
|
{ provide: Store, useValue: store },
|
||||||
@@ -73,6 +80,9 @@ describe('ExistingRelationListElementComponent', () => {
|
|||||||
],
|
],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
})
|
})
|
||||||
|
.overrideComponent(ExistingRelationListElementComponent, {
|
||||||
|
remove: { imports: [ListableObjectComponentLoaderComponent]}
|
||||||
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user