Export single contact, nickname
This commit is contained in:
parent
a877435eea
commit
8c57d243c0
11 changed files with 256 additions and 166 deletions
|
@ -652,21 +652,5 @@ describe('Contact', () => {
|
|||
const result = _validate(contact, { messageId });
|
||||
assert.deepEqual(result?.message, expected);
|
||||
});
|
||||
|
||||
it('logs if no values remain in contact', async () => {
|
||||
const messageId = 'the-message-id';
|
||||
const contact = {
|
||||
name: {
|
||||
nickname: 'Someone Somewhere',
|
||||
},
|
||||
number: [],
|
||||
email: [],
|
||||
};
|
||||
const expected =
|
||||
'Message the-message-id: Contact had no included numbers, email or addresses';
|
||||
|
||||
const result = _validate(contact, { messageId });
|
||||
assert.deepEqual(result?.message, expected);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue