Remove default store export

- store
- page importing store
parent 45fbe94c
...@@ -7,6 +7,7 @@ import state from './state'; ...@@ -7,6 +7,7 @@ import state from './state';
Vue.use(Vuex); Vue.use(Vuex);
// eslint-disable-next-line import/prefer-default-export
export const createStore = () => export const createStore = () =>
new Vuex.Store({ new Vuex.Store({
state, state,
...@@ -14,6 +15,3 @@ export const createStore = () => ...@@ -14,6 +15,3 @@ export const createStore = () =>
actions, actions,
mutations, mutations,
}); });
// Deprecated and to be removed
export default createStore();
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import component from '~/registry/explorer/pages/index.vue'; import component from '~/registry/explorer/pages/index.vue';
import store from '~/registry/explorer/stores/'; import { createStore } from '~/registry/explorer/stores/';
describe('List Page', () => { describe('List Page', () => {
let wrapper; let wrapper;
let store;
const findRouterView = () => wrapper.find({ ref: 'router-view' }); const findRouterView = () => wrapper.find({ ref: 'router-view' });
...@@ -17,6 +18,7 @@ describe('List Page', () => { ...@@ -17,6 +18,7 @@ describe('List Page', () => {
}; };
beforeEach(() => { beforeEach(() => {
store = createStore();
mountComponent(); 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