feat(channels): add Shangwutong connector
This commit is contained in:
@@ -35,6 +35,11 @@ describe('#Inbox Helpers', () => {
|
||||
it('should return correct class for Api', () => {
|
||||
expect(getInboxClassByType('Channel::Api')).toEqual('cloud');
|
||||
});
|
||||
it('should return correct class for Shangwutong', () => {
|
||||
expect(getInboxClassByType(INBOX_TYPES.SHANGWUTONG)).toEqual(
|
||||
'customer-service-2'
|
||||
);
|
||||
});
|
||||
it('should return correct class for Email', () => {
|
||||
expect(getInboxClassByType('Channel::Email')).toEqual('mail');
|
||||
});
|
||||
@@ -69,6 +74,12 @@ describe('#Inbox Helpers', () => {
|
||||
expect(getInboxIconByType(INBOX_TYPES.API)).toBe('i-ri-cloudy-fill');
|
||||
});
|
||||
|
||||
it('returns correct icon for Shangwutong', () => {
|
||||
expect(getInboxIconByType(INBOX_TYPES.SHANGWUTONG)).toBe(
|
||||
'i-ri-customer-service-2-fill'
|
||||
);
|
||||
});
|
||||
|
||||
it('returns correct icon for Email', () => {
|
||||
expect(getInboxIconByType(INBOX_TYPES.EMAIL)).toBe('i-ri-mail-fill');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user