mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-16 21:06:22 +08:00
Ability to edit contact information in conversation sidebar Co-authored-by: Sojan <[email protected]>
18 lines
482 B
JavaScript
18 lines
482 B
JavaScript
const { DuplicateContactException } = require('../CustomErrors');
|
|
|
|
describe('DuplicateContactException', () => {
|
|
it('returns correct exception', () => {
|
|
const exception = new DuplicateContactException({
|
|
id: 1,
|
|
name: 'contact-name',
|
|
email: '[email protected]',
|
|
});
|
|
expect(exception.message).toEqual('DUPLICATE_CONTACT');
|
|
expect(exception.data).toEqual({
|
|
id: 1,
|
|
name: 'contact-name',
|
|
email: '[email protected]',
|
|
});
|
|
});
|
|
});
|