From 9323112947b89001c95dfbabf125c665da726efd Mon Sep 17 00:00:00 2001 From: Jacob Pierce Date: Wed, 21 Aug 2024 14:32:12 -0700 Subject: [PATCH] import and register coreModule in useBaseSearch spec --- .../kolibri-common/composables/__tests__/useBaseSearch.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/kolibri-common/composables/__tests__/useBaseSearch.spec.js b/packages/kolibri-common/composables/__tests__/useBaseSearch.spec.js index 06edfa20c29..e684d417b67 100644 --- a/packages/kolibri-common/composables/__tests__/useBaseSearch.spec.js +++ b/packages/kolibri-common/composables/__tests__/useBaseSearch.spec.js @@ -6,6 +6,7 @@ import { ContentNodeResource } from 'kolibri.resources'; import { coreStoreFactory } from 'kolibri.coreVue.vuex.store'; import { AllCategories, NoCategories } from 'kolibri.coreVue.vuex.constants'; import useBaseSearch from '../useBaseSearch'; +import coreModule from '../../../../kolibri/core/assets/src/state/modules/core'; Vue.use(VueRouter); @@ -27,6 +28,7 @@ function prep(query = {}, descendant = null) { }); const router = new VueRouter(); router.push = jest.fn().mockReturnValue(Promise.resolve()); + store.registerModule('core', coreModule); return { ...useBaseSearch(descendant, store, router), router,