Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jun 7, 2024
1 parent aaa978e commit 07e7149
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ describe('@cube-creator/shared-dimensions-api/lib/domain/shared-dimensions @SPAR
describe('getSharedDimensions', () => {
it('returns from all graphs', async () => {
// when
const dataset = await $rdf.dataset()
.import(await getSharedDimensions(mdClients.streamClient))
const dataset = $rdf.dataset([
...await getSharedDimensions(mdClients.streamClient),
])

// then
const termSets = [...dataset.match(null, rdf.type, schema.DefinedTermSet)].map(({ subject }) => subject)
Expand All @@ -28,10 +29,11 @@ describe('@cube-creator/shared-dimensions-api/lib/domain/shared-dimensions @SPAR

it('returns filtered by name', async () => {
// when
const dataset = await $rdf.dataset()
.import(await getSharedDimensions(mdClients.streamClient, {
const dataset = $rdf.dataset([
...await getSharedDimensions(mdClients.streamClient, {
freetextQuery: 'colors',
}))
}),
])

// then
const termSets = [...dataset.match(null, rdf.type, schema.DefinedTermSet)].map(({ subject }) => subject)
Expand Down

0 comments on commit 07e7149

Please sign in to comment.