Chatwoot/app/javascript/dashboard/store/modules/specs/conversationStats/getters.spec.js

17 lines
333 B
JavaScript
Raw Normal View History

import { getters } from '../../conversationStats';
describe('#getters', () => {
it('getCurrentPage', () => {
const state = {
mineCount: 1,
unAssignedCount: 1,
allCount: 2,
};
expect(getters.getStats(state)).toEqual({
mineCount: 1,
unAssignedCount: 1,
allCount: 2,
});
});
});