mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 04:53:06 +00:00
[DSC-130] Fix issue when switching submission's collection between those with different submission definition
This commit is contained in:
@@ -261,9 +261,10 @@ describe('SubmissionFormCollectionComponent Component', () => {
|
||||
expect(comp.toggled).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should ', () => {
|
||||
it('should change collection properly', () => {
|
||||
spyOn(comp.collectionChange, 'emit').and.callThrough();
|
||||
jsonPatchOpServiceStub.jsonPatchByResourceID.and.returnValue(of(submissionRestResponse));
|
||||
submissionServiceStub.retrieveSubmission.and.returnValue(createSuccessfulRemoteDataObject$(submissionRestResponse[0]));
|
||||
comp.ngOnInit();
|
||||
comp.onSelect(mockCollectionList[1]);
|
||||
fixture.detectChanges();
|
||||
|
Reference in New Issue
Block a user