Skip to content

Commit 022c950

Browse files
committed
feat(PublishDataset use case): fix functional test
1 parent 666e376 commit 022c950

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/functional/datasets/PublishDataset.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import { DataverseApiAuthMechanism } from '../../../src/core/infra/repositories/
1010
import { waitForNoLocks } from '../../testHelpers/datasets/datasetHelper'
1111

1212
const testNewDataset = {
13+
license: {
14+
name: 'CC0 1.0',
15+
uri: 'http://creativecommons.org/publicdomain/zero/1.0',
16+
iconUri: 'https://licensebuttons.net/p/zero/1.0/88x31.png'
17+
},
1318
metadataBlockValues: [
1419
{
1520
name: 'citation',
@@ -63,7 +68,7 @@ describe('execute', () => {
6368
test('should throw an error when trying to publish a dataset that does not exist', async () => {
6469
const nonExistentTestDatasetId = 'non-existent-dataset'
6570
const expectedError = new WriteError(
66-
`[404] Dataset with ID ${nonExistentTestDatasetId} not found.`
71+
`[404] Dataset with Persistent ID ${nonExistentTestDatasetId} not found.`
6772
)
6873

6974
await expect(

0 commit comments

Comments
 (0)