feat: Ability to edit a contact (#1092)
Ability to edit contact information in conversation sidebar Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
parent
ec6cd4bbba
commit
8cf05f1d9f
23 changed files with 709 additions and 133 deletions
17
app/javascript/shared/helpers/specs/CustomErrors.spec.js
Normal file
17
app/javascript/shared/helpers/specs/CustomErrors.spec.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const { DuplicateContactException } = require('../CustomErrors');
|
||||
|
||||
describe('DuplicateContactException', () => {
|
||||
it('returns correct exception', () => {
|
||||
const exception = new DuplicateContactException({
|
||||
id: 1,
|
||||
name: 'contact-name',
|
||||
email: 'email@example.com',
|
||||
});
|
||||
expect(exception.message).toEqual('DUPLICATE_CONTACT');
|
||||
expect(exception.data).toEqual({
|
||||
id: 1,
|
||||
name: 'contact-name',
|
||||
email: 'email@example.com',
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue