Skip to content

Commit

Permalink
import and register coreModule in useBaseSearch spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Aug 21, 2024
1 parent 87d433e commit 9323112
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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,
Expand Down

0 comments on commit 9323112

Please sign in to comment.