From ab0b864821c10e2ef5be1bad1d32dd211b125f0f Mon Sep 17 00:00:00 2001 From: MellyGray Date: Tue, 9 Jan 2024 16:25:20 +0100 Subject: [PATCH] fix: e2e test year dependence --- .../integration/datasets/DatasetJSDataverseRepository.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts b/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts index 5d0336a02..2c63814b1 100644 --- a/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts +++ b/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts @@ -26,8 +26,9 @@ function getCurrentDateInYYYYMMDDFormat() { const datasetData = (persistentId: string, versionId: number) => { const persistentIdUrl = `https://doi.org/${persistentId.replace('doi:', '')}` + const year = new Date().getFullYear() return { - citation: `Finch, Fiona, 2023, "Darwin's Finches", ${persistentIdUrl}, Root, DRAFT VERSION`, + citation: `Finch, Fiona, ${year}, "Darwin's Finches", ${persistentIdUrl}, Root, DRAFT VERSION`, labels: [ { semanticMeaning: 'dataset', value: 'Draft' }, { semanticMeaning: 'warning', value: 'Unpublished' }