Skip to content
Snippets Groups Projects
Commit 1a22f147 authored by Ben Bosman's avatar Ben Bosman
Browse files

verify whether file uploads are mandatory

parent fb10c776
Branches
Tags
No related merge requests found
......@@ -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', {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment