You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-csc-ui/t/store/user.js

17 lines
399 B

'use strict'
import UserModule from '../../src/store/user'
import { assert } from 'chai'
describe('UserModule', () => {
it('should login', () => {
const state = {}
UserModule.mutations.loginSucceeded(state, {
jwt: 'abc123',
subscriberId: 123
})
assert.equal(state.jwt, 'abc123')
assert.equal(state.subscriberId, '123')
})
})