fix #869 Submission embargo bug

This commit is contained in:
Andrew Wood
2020-11-03 13:55:31 -05:00
committed by Samuel
parent 942dd2e72e
commit f0a710a9fc
13 changed files with 15 additions and 260 deletions

View File

@@ -162,7 +162,6 @@ describe('SubmissionSectionUploadFileComponent test suite', () => {
comp.collectionId = collectionId;
comp.sectionId = sectionId;
comp.availableAccessConditionOptions = availableAccessConditionOptions;
comp.availableAccessConditionGroups = availableGroupsMap;
comp.collectionPolicyType = collectionPolicyType;
comp.fileIndex = fileIndex;
comp.fileId = fileId;
@@ -258,9 +257,9 @@ describe('SubmissionSectionUploadFileComponent test suite', () => {
operationsService.jsonPatchByResourceID.and.returnValue(observableOf(response));
const accessConditionsToSave = [
{ name: 'openaccess', groupUUID: '123456-g' },
{ name: 'lease', endDate: '2019-01-16T00:00:00Z', groupUUID: '123456-g' },
{ name: 'embargo', startDate: '2019-01-16T00:00:00Z', groupUUID: '123456-g' }
{ name: 'openaccess' },
{ name: 'lease', endDate: '2019-01-16T00:00:00Z' },
{ name: 'embargo', startDate: '2019-01-16T00:00:00Z' },
];
comp.saveBitstreamData(event);
tick();