Skip to content

Commit

Permalink
fix: e2e test year dependence
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Jan 9, 2024
1 parent 9760d4b commit ab0b864
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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", <a href="${persistentIdUrl}" target="_blank">${persistentIdUrl}</a>, Root, DRAFT VERSION`,
citation: `Finch, Fiona, ${year}, "Darwin's Finches", <a href="${persistentIdUrl}" target="_blank">${persistentIdUrl}</a>, Root, DRAFT VERSION`,
labels: [
{ semanticMeaning: 'dataset', value: 'Draft' },
{ semanticMeaning: 'warning', value: 'Unpublished' }
Expand Down

0 comments on commit ab0b864

Please sign in to comment.