diff --git a/admin/src/store/store.test.js b/admin/src/store/store.test.js new file mode 100644 index 000000000..9ab9d980b --- /dev/null +++ b/admin/src/store/store.test.js @@ -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') + }) + }) + }) +})