Skip to content

Commit 376a17b

Browse files
committed
chore(mocks): rename export module
1 parent cf3a8f4 commit 376a17b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/mocks/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Router from './router';
2-
import Store from './store';
1+
import createRouter from './router';
2+
import createStore from './store';
33

4-
export { Router, Store };
4+
export { createRouter, createStore };

src/mocks/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { VueConstructor } from 'vue';
22
import VueRouter from 'vue-router';
33

4-
export default function register(localVue: VueConstructor) {
4+
export default function createRouter(localVue: VueConstructor) {
55
localVue.use(VueRouter);
66
return new VueRouter({
77
routes: [

src/mocks/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface CounterState {
55
count: number;
66
}
77

8-
export default function register(localVue: VueConstructor) {
8+
export default function createStore(localVue: VueConstructor) {
99
localVue.use(Vuex);
1010
return new Vuex.Store<CounterState>({
1111
state: {

src/util/renderHook.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import Vue from 'vue';
33
import { shallowMount, createLocalVue } from '@vue/test-utils';
44
import { plugin, createComponent } from 'vue-function-api';
55
import { Context } from 'vue-function-api/dist/types/vue';
6-
import { Router, Store } from '../mocks';
6+
import { createRouter, createStore } from '../mocks';
77
import hooks from '..';
88

99
const localVue = createLocalVue();
10-
const router = Router(localVue);
11-
const store = Store(localVue);
10+
const router = createRouter(localVue);
11+
const store = createStore(localVue);
1212

1313
localVue.use(hooks);
1414
localVue.use(plugin);

0 commit comments

Comments
 (0)