Add OAuth Tokens management to settings
This commit is contained in:
parent
058238c3c6
commit
2c7406d9a8
25 changed files with 208 additions and 1 deletions
|
@ -32,6 +32,16 @@ describe('The users module', () => {
|
|||
|
||||
expect(user.muted).to.eql(false)
|
||||
})
|
||||
|
||||
it('sets oauth tokens', () => {
|
||||
const state = cloneDeep(defaultState)
|
||||
const tokens = [{ id: 1, token: 'bar' }]
|
||||
|
||||
mutations.addOAuthTokens(state, tokens)
|
||||
|
||||
expect(state.oauthTokens).to.have.length(1)
|
||||
expect(state.oauthTokens).to.eql(tokens)
|
||||
})
|
||||
})
|
||||
|
||||
describe('getUserByName', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue