Skip to content

Commit 968aa4c

Browse files
committed
test: make year dynamic
1 parent c420849 commit 968aa4c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/integration/collections/CollectionsRepository.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ describe('CollectionsRepository', () => {
292292
const actualCollectionPreview = actual.items[2] as CollectionPreview
293293

294294
const expectedFileMd5 = '68b22040025784da775f55cfcb6dee2e'
295-
const expectedDatasetCitationFragment =
296-
'Admin, Dataverse; Owner, Dataverse, 2024, "Dataset created using the createDataset use case'
295+
const expectedDatasetCitationFragment = `Admin, Dataverse; Owner, Dataverse, ${new Date().getFullYear()}, "Dataset created using the createDataset use case`
297296
const expectedDatasetDescription = 'Dataset created using the createDataset use case'
298297
const expectedFileName = 'test-file-1.txt'
299298
const expectedCollectionsName = 'Scientific Research'

0 commit comments

Comments
 (0)