Skip to content

Commit

Permalink
tests: init vuex
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Jun 11, 2021
1 parent dd5b4b5 commit 7b3e41d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/web-runtime/tests/store/config.spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
import Vue from 'vue'
import Vuex from 'vuex'
import { createStore } from 'vuex-extensions'

import { loadTheme } from 'web-runtime/src/helpers/theme'
import store from 'web-runtime/src/store'
import Store from 'web-runtime/src/store'
import { keysDeep } from 'web-pkg/src/utils/object'
import get from 'lodash-es/get'
import difference from 'lodash-es/difference'

Vue.use(Vuex)

const store = createStore(Vuex.Store, { ...Store })

describe('config theme bootstrap', () => {
const initialStoreTheme = { ...store.getters.configuration.theme }

beforeEach(() => {
afterEach(() => {
store.reset()
})

Expand Down

0 comments on commit 7b3e41d

Please sign in to comment.