delete redeem

This commit is contained in:
ogerly 2022-03-21 13:08:11 +01:00
parent 12f2f2845a
commit 58a7bc0e2a
2 changed files with 1 additions and 15 deletions

View File

@ -47,9 +47,6 @@ export const mutations = {
hasElopage: (state, hasElopage) => {
state.hasElopage = hasElopage
},
redeemCode: (state, redeemCode) => {
state.redeemCode = redeemCode
},
}
export const actions = {
@ -76,7 +73,6 @@ export const actions = {
commit('hasElopage', false)
commit('publisherId', null)
commit('isAdmin', false)
commit('redeemCode', null)
localStorage.clear()
},
}
@ -106,7 +102,6 @@ try {
},
hasElopage: false,
publisherId: null,
redeemCode: null,
},
getters: {},
// Syncronous mutation of the state

View File

@ -26,7 +26,6 @@ const {
isAdmin,
community,
hasElopage,
redeemCode,
} = mutations
const { login, logout } = actions
@ -142,14 +141,6 @@ describe('Vuex store', () => {
hasElopage(state, true)
expect(state.hasElopage).toBeTruthy()
})
describe('redeemCode', () => {
it('sets the state of token', () => {
const state = { redeemCode: null }
redeemCode(state, 'a0000b0000c0000')
expect(state.redeemCode).toEqual('a0000b0000c0000')
})
})
})
})
@ -228,7 +219,7 @@ describe('Vuex store', () => {
it('calls nine commits', () => {
logout({ commit, state })
expect(commit).toHaveBeenCalledTimes(10)
expect(commit).toHaveBeenCalledTimes(9)
})
it('commits token', () => {