test store

This commit is contained in:
Moriz Wahl 2021-10-27 15:57:46 +02:00
parent 9b5d88a533
commit d889df51fe

View File

@ -0,0 +1,15 @@
import { mutations } from './store'
const { token } = mutations
describe('Vuex store', () => {
describe('mutations', () => {
describe('token', () => {
it('sets the state of token', () => {
const state = { token: null }
token(state, '1234')
expect(state.token).toEqual('1234')
})
})
})
})