Skip to content

Commit

Permalink
test: publishedDate is set on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomociti committed May 17, 2024
1 parent 344e153 commit 3fb4e00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cli/test/lib/commands/publish.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,17 @@ describe('@cube-creator/cli/lib/commands/publish', function () {
})
})

it('adds published date to published cube', async function () {
expect(cubePointer.namedNode(targetCube())).to.matchShape({
property: [{
path: schema.datePublished,
datatype: xsd.date,
minCount: 1,
maxCount: 1,
}],
})
})

it('adds project identifier to dataset metadata', async function () {
expect(cubePointer.namedNode(targetCube())).to.matchShape({
property: [{
Expand Down

0 comments on commit 3fb4e00

Please sign in to comment.