mirror of
https://github.com/lingble/chatwoot.git
synced 2026-03-20 03:52:43 +00:00
* refactor: use has_email instead of email * feat: remove usage of details directly in forms * test: update payload * test: fix transcript test * refactor: use computed hasEmail --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
18 lines
447 B
JavaScript
18 lines
447 B
JavaScript
import { mutations } from '../../contacts';
|
|
|
|
describe('#mutations', () => {
|
|
describe('#SET_CURRENT_USER', () => {
|
|
it('set current user', () => {
|
|
const user = {
|
|
has_email: true,
|
|
has_name: true,
|
|
avatar_url: '',
|
|
identifier_hash: 'malana_hash',
|
|
};
|
|
const state = { currentUser: {} };
|
|
mutations.SET_CURRENT_USER(state, user);
|
|
expect(state.currentUser).toEqual(user);
|
|
});
|
|
});
|
|
});
|