feat: Dedicated tab for campaigns (#2741)

This commit is contained in:
Muhsin Keloth
2021-08-11 20:29:33 +05:30
committed by GitHub
parent 8daf1fe033
commit 4d668d8db3
22 changed files with 477 additions and 505 deletions

View File

@@ -43,4 +43,16 @@ export default [
website_token: 'randomid125',
enable_auto_assignment: true,
},
{
id: 5,
channel_id: 5,
name: 'Test Widget 5',
channel_type: 'Channel::TwilioSms',
avatar_url: null,
page_id: null,
widget_color: '#68BC00',
website_token: 'randomid125',
enable_auto_assignment: true,
},
];

View File

@@ -14,6 +14,11 @@ describe('#getters', () => {
expect(getters.getWebsiteInboxes(state).length).toEqual(3);
});
it('getTwilioInboxes', () => {
const state = { records: inboxList };
expect(getters.getTwilioInboxes(state).length).toEqual(1);
});
it('getInbox', () => {
const state = {
records: inboxList,