mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
fix tests and lint issues
This commit is contained in:
@@ -73,6 +73,7 @@ import { of as observableOf } from 'rxjs';
|
||||
import { createSuccessfulRemoteDataObject } from '../../../testing/utils';
|
||||
import { FormService } from '../../form.service';
|
||||
import { SubmissionService } from '../../../../submission/submission.service';
|
||||
import { FormBuilderService } from '../form-builder.service';
|
||||
|
||||
describe('DsDynamicFormControlContainerComponent test suite', () => {
|
||||
|
||||
@@ -180,6 +181,7 @@ describe('DsDynamicFormControlContainerComponent test suite', () => {
|
||||
{ provide: RelationshipService, useValue: {} },
|
||||
{ provide: SelectableListService, useValue: {} },
|
||||
{ provide: FormService, useValue: {} },
|
||||
{ provide: FormBuilderService, useValue: {} },
|
||||
{ provide: SubmissionService, useValue: {} },
|
||||
{
|
||||
provide: SubmissionObjectDataService,
|
||||
|
@@ -390,7 +390,6 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
|
||||
modalComp.item = this.item;
|
||||
modalComp.collection = this.collection;
|
||||
modalComp.submissionId = this.model.submissionId;
|
||||
modalComp.selectEvent
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -61,7 +61,6 @@ export abstract class Reorderable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Represents a single existing relationship value as metadata in submission
|
||||
*/
|
||||
@@ -118,7 +117,7 @@ export class ExistingRelationListElementComponent implements OnInit, OnChanges,
|
||||
* Removes the selected relationship from the list
|
||||
*/
|
||||
removeSelection() {
|
||||
this.selectableListService.deselectSingle(this.listId, Object.assign(new ItemSearchResult(), { indexableObject: this.relatedItem$ }));
|
||||
this.selectableListService.deselectSingle(this.listId, Object.assign(new ItemSearchResult(), { indexableObject: this.relatedItem$.getValue() }));
|
||||
this.store.dispatch(new RemoveRelationshipAction(this.submissionItem, this.relatedItem$.getValue(), this.relationshipOptions.relationshipType, this.submissionId));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user