Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { DuplicateContactException } from '../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'],
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user