mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
delete redeem
This commit is contained in:
parent
12f2f2845a
commit
58a7bc0e2a
@ -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
|
||||
|
||||
@ -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', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user