Skip to content

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

333 B
Raw Blame
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,
    });
  });
});