6d378eb206
Fixes #3476
13 lines
390 B
JavaScript
13 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'],
|
|
});
|
|
});
|
|
});
|