mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-07-01 21:03:46 +08:00
* Enhancement: Ability to assign administrators as conversation assignee Co-authored-by: Nithin David Thomas <[email protected]> Co-authored-by: Muhsin Keloth <[email protected]>
17 lines
468 B
JavaScript
17 lines
468 B
JavaScript
import { mutations, types } from '../../inboxAssignableAgents';
|
|
import agentsData from './fixtures';
|
|
|
|
describe('#mutations', () => {
|
|
describe('#SET_INBOX_ASSIGNABLE_AGENTS', () => {
|
|
it('Adds inbox members to records', () => {
|
|
const state = { records: {} };
|
|
mutations[types.SET_INBOX_ASSIGNABLE_AGENTS](state, {
|
|
members: [...agentsData],
|
|
inboxId: 1,
|
|
});
|
|
|
|
expect(state.records).toEqual({ 1: agentsData });
|
|
});
|
|
});
|
|
});
|