mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			390 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			390 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { DuplicateContactException } = require('../CustomErrors');
 | 
						|
 | 
						|
describe('DuplicateContactException', () => {
 | 
						|
  it('returns correct exception', () => {
 | 
						|
    const exception = new DuplicateContactException({
 | 
						|
      attributes: ['email'],
 | 
						|
    });
 | 
						|
    expect(exception.message).toEqual('DUPLICATE_CONTACT');
 | 
						|
    expect(exception.data).toEqual({
 | 
						|
      attributes: ['email'],
 | 
						|
    });
 | 
						|
  });
 | 
						|
});
 |