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) => {
|
hasElopage: (state, hasElopage) => {
|
||||||
state.hasElopage = hasElopage
|
state.hasElopage = hasElopage
|
||||||
},
|
},
|
||||||
redeemCode: (state, redeemCode) => {
|
|
||||||
state.redeemCode = redeemCode
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const actions = {
|
export const actions = {
|
||||||
@ -76,7 +73,6 @@ export const actions = {
|
|||||||
commit('hasElopage', false)
|
commit('hasElopage', false)
|
||||||
commit('publisherId', null)
|
commit('publisherId', null)
|
||||||
commit('isAdmin', false)
|
commit('isAdmin', false)
|
||||||
commit('redeemCode', null)
|
|
||||||
localStorage.clear()
|
localStorage.clear()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -106,7 +102,6 @@ try {
|
|||||||
},
|
},
|
||||||
hasElopage: false,
|
hasElopage: false,
|
||||||
publisherId: null,
|
publisherId: null,
|
||||||
redeemCode: null,
|
|
||||||
},
|
},
|
||||||
getters: {},
|
getters: {},
|
||||||
// Syncronous mutation of the state
|
// Syncronous mutation of the state
|
||||||
|
|||||||
@ -26,7 +26,6 @@ const {
|
|||||||
isAdmin,
|
isAdmin,
|
||||||
community,
|
community,
|
||||||
hasElopage,
|
hasElopage,
|
||||||
redeemCode,
|
|
||||||
} = mutations
|
} = mutations
|
||||||
const { login, logout } = actions
|
const { login, logout } = actions
|
||||||
|
|
||||||
@ -142,14 +141,6 @@ describe('Vuex store', () => {
|
|||||||
hasElopage(state, true)
|
hasElopage(state, true)
|
||||||
expect(state.hasElopage).toBeTruthy()
|
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', () => {
|
it('calls nine commits', () => {
|
||||||
logout({ commit, state })
|
logout({ commit, state })
|
||||||
expect(commit).toHaveBeenCalledTimes(10)
|
expect(commit).toHaveBeenCalledTimes(9)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('commits token', () => {
|
it('commits token', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user