2020-06-14 08:37:52 +00:00
|
|
|
import contacts from '../contacts';
|
2020-01-13 05:47:03 +00:00
|
|
|
import ApiClient from '../ApiClient';
|
|
|
|
|
|
|
|
describe('#ContactsAPI', () => {
|
|
|
|
it('creates correct instance', () => {
|
2020-06-14 08:37:52 +00:00
|
|
|
expect(contacts).toBeInstanceOf(ApiClient);
|
|
|
|
expect(contacts).toHaveProperty('get');
|
|
|
|
expect(contacts).toHaveProperty('show');
|
|
|
|
expect(contacts).toHaveProperty('create');
|
|
|
|
expect(contacts).toHaveProperty('update');
|
|
|
|
expect(contacts).toHaveProperty('delete');
|
|
|
|
expect(contacts).toHaveProperty('getConversations');
|
2020-01-13 05:47:03 +00:00
|
|
|
});
|
|
|
|
});
|