verify whether file uploads are mandatory

This commit is contained in:
Ben Bosman
2020-01-03 10:44:01 +01:00
parent fb10c7764b
commit 1a22f147fb

View File

@@ -267,10 +267,21 @@ describe('SubmissionSectionUploadComponent test suite', () => {
});
it('should properly read the section status', () => {
submissionServiceStub.getSubmissionObject.and.returnValue(observableOf(submissionState));
collectionDataService.findById.and.returnValue(createSuccessfulRemoteDataObject$(mockCollection));
resourcePolicyService.findByHref.and.returnValue(createSuccessfulRemoteDataObject$(mockDefaultAccessCondition));
uploadsConfigService.getConfigByHref.and.returnValue(observableOf(
new ConfigData(new PageInfo(), mockUploadConfigResponseNotRequired as any)
));
groupService.findById.and.returnValues(
createSuccessfulRemoteDataObject$(Object.assign(new Group(), mockGroup)),
createSuccessfulRemoteDataObject$(Object.assign(new Group(), mockGroup))
);
comp.onSectionInit();
bitstreamService.getUploadedFileList.and.returnValue(hot('-a-b', {