40481f6462
* Bug: Update conversation counters in realtime
19 lines
852 B
JavaScript
19 lines
852 B
JavaScript
import conversationAPI from '../../inbox/conversation';
|
|
import ApiClient from '../../ApiClient';
|
|
|
|
describe('#ConversationAPI', () => {
|
|
it('creates correct instance', () => {
|
|
expect(conversationAPI).toBeInstanceOf(ApiClient);
|
|
expect(conversationAPI).toHaveProperty('get');
|
|
expect(conversationAPI).toHaveProperty('show');
|
|
expect(conversationAPI).toHaveProperty('create');
|
|
expect(conversationAPI).toHaveProperty('update');
|
|
expect(conversationAPI).toHaveProperty('delete');
|
|
expect(conversationAPI).toHaveProperty('toggleStatus');
|
|
expect(conversationAPI).toHaveProperty('assignAgent');
|
|
expect(conversationAPI).toHaveProperty('markMessageRead');
|
|
expect(conversationAPI).toHaveProperty('toggleTyping');
|
|
expect(conversationAPI).toHaveProperty('mute');
|
|
expect(conversationAPI).toHaveProperty('meta');
|
|
});
|
|
});
|