2022-02-02 13:16:07 +00:00
|
|
|
import automations from '../automation';
|
|
|
|
import ApiClient from '../ApiClient';
|
|
|
|
|
|
|
|
describe('#AutomationsAPI', () => {
|
|
|
|
it('creates correct instance', () => {
|
|
|
|
expect(automations).toBeInstanceOf(ApiClient);
|
|
|
|
expect(automations).toHaveProperty('get');
|
|
|
|
expect(automations).toHaveProperty('show');
|
|
|
|
expect(automations).toHaveProperty('create');
|
|
|
|
expect(automations).toHaveProperty('update');
|
|
|
|
expect(automations).toHaveProperty('delete');
|
2022-02-03 03:44:22 +00:00
|
|
|
expect(automations).toHaveProperty('clone');
|
2022-02-02 13:16:07 +00:00
|
|
|
expect(automations.url).toBe('/api/v1/automation_rules');
|
|
|
|
});
|
|
|
|
});
|