From 07e7149e5f9e48535f9445e45f31c6a47623a029 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Fri, 7 Jun 2024 11:48:55 +0200 Subject: [PATCH] test: fix --- .../test/lib/domain/managed-dimensions.test.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apis/shared-dimensions/test/lib/domain/managed-dimensions.test.ts b/apis/shared-dimensions/test/lib/domain/managed-dimensions.test.ts index f1018caaa..d1c9c6b62 100644 --- a/apis/shared-dimensions/test/lib/domain/managed-dimensions.test.ts +++ b/apis/shared-dimensions/test/lib/domain/managed-dimensions.test.ts @@ -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) @@ -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)