remove vuex
This commit is contained in:
parent
7ae22bbb75
commit
365e7c9235
5 changed files with 5 additions and 123 deletions
22
test/fixtures/mock_store.js
vendored
22
test/fixtures/mock_store.js
vendored
|
|
@ -1,22 +0,0 @@
|
|||
import { cloneDeep } from 'lodash'
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
import vuexModules from 'src/modules/index.js'
|
||||
|
||||
const tweakModules = (modules) => {
|
||||
const res = {}
|
||||
Object.entries(modules).forEach(([name, module]) => {
|
||||
const m = { ...module }
|
||||
m.state = cloneDeep(module.state)
|
||||
res[name] = m
|
||||
})
|
||||
return res
|
||||
}
|
||||
|
||||
const makeMockStore = () => {
|
||||
return createStore({
|
||||
modules: tweakModules(vuexModules),
|
||||
})
|
||||
}
|
||||
|
||||
export default makeMockStore
|
||||
Loading…
Add table
Add a link
Reference in a new issue