Skip to content

Commit 6e56e00

Browse files
committed
added missing param on updateDataset test
1 parent df8c622 commit 6e56e00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/dataverseClient.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,8 @@ describe('DataverseClient', () => {
15021502
await client.updateDataset(datasetId, datasetInformation)
15031503

15041504
assert.calledOnce(axiosPutStub)
1505-
assert.calledWithExactly(axiosPutStub, `${host}/api/datasets/:persistentId/versions/:draft?persistentId=${datasetId}`, {
1505+
const payload: any = DatasetUtil.mapBasicDatasetInformation(datasetInformation)
1506+
assert.calledWithExactly(axiosPutStub, `${host}/api/datasets/:persistentId/versions/:draft?persistentId=${datasetId}`, JSON.stringify(payload.datasetVersion), {
15061507
headers: {
15071508
'X-Dataverse-key': apiToken,
15081509
'Content-Type': 'application/json'

0 commit comments

Comments
 (0)