Remove default store export

- store
- page importing store
parent 45fbe94c
......@@ -7,6 +7,7 @@ import state from './state';
Vue.use(Vuex);
// eslint-disable-next-line import/prefer-default-export
export const createStore = () =>
new Vuex.Store({
state,
......@@ -14,6 +15,3 @@ export const createStore = () =>
actions,
mutations,
});
// Deprecated and to be removed
export default createStore();
import { shallowMount } from '@vue/test-utils';
import component from '~/registry/explorer/pages/index.vue';
import store from '~/registry/explorer/stores/';
import { createStore } from '~/registry/explorer/stores/';
describe('List Page', () => {
let wrapper;
let store;
const findRouterView = () => wrapper.find({ ref: 'router-view' });
......@@ -17,6 +18,7 @@ describe('List Page', () => {
};
beforeEach(() => {
store = createStore();
mountComponent();
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment