Chatwoot/app/javascript/dashboard/store/modules/specs/inboxAssignableMembers/getters.spec.js
Sivin Varghese 285f7bbeb5
Enhancement: Ability to assign administrators as conversation assignees (#2142)
* Enhancement: Ability to assign administrators as conversation assignee

Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2021-04-22 23:17:29 +05:30

24 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,
});
});
});