2021-02-04 07:49:59 +00:00
|
|
|
import teams from '../teams';
|
|
|
|
import ApiClient from '../ApiClient';
|
|
|
|
|
|
|
|
describe('#TeamsAPI', () => {
|
|
|
|
it('creates correct instance', () => {
|
|
|
|
expect(teams).toBeInstanceOf(ApiClient);
|
|
|
|
expect(teams).toHaveProperty('get');
|
|
|
|
expect(teams).toHaveProperty('show');
|
|
|
|
expect(teams).toHaveProperty('create');
|
|
|
|
expect(teams).toHaveProperty('update');
|
|
|
|
expect(teams).toHaveProperty('delete');
|
|
|
|
expect(teams).toHaveProperty('getAgents');
|
|
|
|
expect(teams).toHaveProperty('addAgents');
|
2021-03-15 13:05:56 +00:00
|
|
|
expect(teams).toHaveProperty('updateAgents');
|
2021-02-04 07:49:59 +00:00
|
|
|
});
|
|
|
|
});
|