fix timezone issue with test dates

This commit is contained in:
Art Lowel
2021-07-23 16:30:25 +02:00
parent 146ec49a32
commit 3c1263ada6
2 changed files with 6 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ import { getMockSectionUploadService } from '../../../../shared/mocks/section-up
import { FormFieldMetadataValueObject } from '../../../../shared/form/builder/models/form-field-metadata-value.model';
import { SubmissionSectionUploadFileEditComponent } from './edit/section-upload-file-edit.component';
import { FormBuilderService } from '../../../../shared/form/builder/form-builder.service';
import { dateToISOFormat } from '../../../../shared/date.util';
describe('SubmissionSectionUploadFileComponent test suite', () => {
@@ -232,8 +233,8 @@ describe('SubmissionSectionUploadFileComponent test suite', () => {
const accessConditionsToSave = [
{ name: 'openaccess' },
{ name: 'lease', endDate: '2019-01-16T00:00:00Z' },
{ name: 'embargo', startDate: '2019-01-16T00:00:00Z' },
{ name: 'lease', endDate: dateToISOFormat('2019-01-16T00:00:00Z') },
{ name: 'embargo', startDate: dateToISOFormat('2019-01-16T00:00:00Z') },
];
comp.saveBitstreamData(event);
tick();