mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			574 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			574 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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');
 | 
						|
    expect(automations).toHaveProperty('clone');
 | 
						|
    expect(automations.url).toBe('/api/v1/automation_rules');
 | 
						|
  });
 | 
						|
});
 |