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,24 @@
|
||||
import { getters } from '../../teamMembers';
|
||||
import teamMembers from './fixtures';
|
||||
|
||||
describe('#getters', () => {
|
||||
it('getMembersByInbox', () => {
|
||||
const state = {
|
||||
records: {
|
||||
1: [teamMembers[0]],
|
||||
},
|
||||
};
|
||||
expect(getters.getTeamMembers(state)(1)).toEqual([teamMembers[0]]);
|
||||
});
|
||||
|
||||
it('getUIFlags', () => {
|
||||
const state = {
|
||||
uiFlags: {
|
||||
isFetching: false,
|
||||
},
|
||||
};
|
||||
expect(getters.getUIFlags(state)).toEqual({
|
||||
isFetching: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user