From d889df51fef03429afbcde935dff36dd095b9cc8 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 27 Oct 2021 15:57:46 +0200 Subject: [PATCH] test store --- admin/src/store/store.test.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 admin/src/store/store.test.js 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') + }) + }) + }) +})