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]>
25 lines
505 B
JavaScript
25 lines
505 B
JavaScript
import { getters } from '../../teamMembers';
|
|
import agentsData from './fixtures';
|
|
|
|
describe('#getters', () => {
|
|
it('getAssignableAgents', () => {
|
|
const state = {
|
|
records: {
|
|
1: [agentsData[0]],
|
|
},
|
|
};
|
|
expect(getters.getTeamMembers(state)(1)).toEqual([agentsData[0]]);
|
|
});
|
|
|
|
it('getUIFlags', () => {
|
|
const state = {
|
|
uiFlags: {
|
|
isFetching: false,
|
|
},
|
|
};
|
|
expect(getters.getUIFlags(state)).toEqual({
|
|
isFetching: false,
|
|
});
|
|
});
|
|
});
|