mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-10 00:30:39 +01:00
26 lines
666 B
TypeScript
26 lines
666 B
TypeScript
import Account from '@/store/Preferences/Account'
|
|
|
|
describe('Preferences/Account', () => {
|
|
describe('mutations', () => {
|
|
let state
|
|
beforeEach(() => {
|
|
state = {
|
|
accounts: [],
|
|
accountLoading: false
|
|
}
|
|
})
|
|
describe('updateAccounts', () => {
|
|
it('should be updated', () => {
|
|
Account.mutations.updateAccounts(state, ['account'])
|
|
expect(state.accounts).toEqual(['account'])
|
|
})
|
|
})
|
|
describe('updateAccountLoading', () => {
|
|
it('should be update', () => {
|
|
Account.mutations.updateAccountLoading(state, true)
|
|
expect(state.accountLoading).toEqual(true)
|
|
})
|
|
})
|
|
})
|
|
})
|