Chatwoot/app/javascript/dashboard/api/specs/teams.spec.js
2021-03-15 18:35:56 +05:30

16 lines
554 B
JavaScript

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');
expect(teams).toHaveProperty('updateAgents');
});
});