Fix: Populate only agents part of the inbox in conversations (#2060)
* Fix: Show only agents part of the inbox in conversations * Show only verified agents Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
committed by
GitHub
parent
98f4a2f6f3
commit
03bd34be86
@@ -0,0 +1,16 @@
|
||||
import { mutations, types } from '../../inboxMembers';
|
||||
import inboxMembers from './fixtures';
|
||||
|
||||
describe('#mutations', () => {
|
||||
describe('#SET_INBOX_MEMBERS', () => {
|
||||
it('Adds inbox members to records', () => {
|
||||
const state = { records: {} };
|
||||
mutations[types.SET_INBOX_MEMBERS](state, {
|
||||
members: [...inboxMembers],
|
||||
inboxId: 1,
|
||||
});
|
||||
|
||||
expect(state.records).toEqual({ 1: inboxMembers });
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user