Chatwoot/app/javascript/dashboard/store/modules/specs/conversationStats/mutations.spec.js
Pranav Raj S 5cb88237f5
Chore: Move conversationStats to a seperate module (#962)
* Chore: Move conversationStats to a seperate module

* Move toggleTyping to conversationTypingStatus

* Remove unused agentTyping flag

* Fix review comments
2020-06-14 14:07:52 +05:30

20 lines
509 B
JavaScript

import types from '../../../mutation-types';
import { mutations } from '../../conversationStats';
describe('#mutations', () => {
describe('#SET_CONV_TAB_META', () => {
it('set conversation stats correctly', () => {
const state = {};
mutations[types.SET_CONV_TAB_META](state, {
mine_count: 1,
unassigned_count: 1,
all_count: 2,
});
expect(state).toEqual({
mineCount: 1,
unAssignedCount: 1,
allCount: 2,
});
});
});
});