mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	* Cleanup agent store and actions * Move set/create/update/destroy to helpers * Update mutation specs * Add specs for API helper * Fix edit/delete action visibility * Add actions specs * Remove unused API helpers * Remove duplicates * Remove duplicates * Fix duplicate
		
			
				
	
	
		
			14 lines
		
	
	
		
			418 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			418 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import agents from '../agents';
 | 
						|
import ApiClient from '../ApiClient';
 | 
						|
 | 
						|
describe('#AgentAPI', () => {
 | 
						|
  it('creates correct instance', () => {
 | 
						|
    expect(agents).toBeInstanceOf(ApiClient);
 | 
						|
    expect(agents).toHaveProperty('get');
 | 
						|
    expect(agents).toHaveProperty('show');
 | 
						|
    expect(agents).toHaveProperty('create');
 | 
						|
    expect(agents).toHaveProperty('update');
 | 
						|
    expect(agents).toHaveProperty('delete');
 | 
						|
  });
 | 
						|
});
 |