From 762b80c880d2260552703f10e6a508919a0c77fd Mon Sep 17 00:00:00 2001 From: Cheng Shi Date: Mon, 4 Nov 2024 16:38:29 -0500 Subject: [PATCH] fix: remove the skip so the test case could be included --- .../integration/datasets/DatasetJSDataverseRepository.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts b/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts index 247aa1fc3..84fe3c461 100644 --- a/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts +++ b/tests/e2e-integration/integration/datasets/DatasetJSDataverseRepository.spec.ts @@ -322,8 +322,7 @@ describe('Dataset JSDataverse Repository', () => { }) }) - it.skip('gets the dataset by persistentId when the dataset is deaccessioned', async () => { - // TODO - Implement once the getDatasetCitation includes deaccessioned datasets + it('gets the dataset by persistentId when the dataset is deaccessioned', async () => { const datasetResponse = await DatasetHelper.create(collectionId) await DatasetHelper.publish(datasetResponse.persistentId) @@ -339,6 +338,7 @@ describe('Dataset JSDataverse Repository', () => { expect(dataset.version.title).to.deep.equal(datasetExpected.title) }) }) + it('gets the dataset by persistentId when is locked', async () => { const datasetResponse = await DatasetHelper.create(collectionId) await DatasetHelper.lock(datasetResponse.id, DatasetLockReason.FINALIZE_PUBLICATION)