fix(core): update
This commit is contained in:
11
test/test.ts
11
test/test.ts
@ -28,6 +28,17 @@ tap.test('should send a smartmail', async () => {
|
||||
await testMailgunAccount.sendSmartMail(testSmartmail, 'Sandbox Team <sandbox@mail.git.zone>');
|
||||
});
|
||||
|
||||
tap.test('should send a smartmail with empty body', async () => {
|
||||
const emptyBodySmartmail = new smartmail.Smartmail<IMailgunMessage>({
|
||||
body: '',
|
||||
from: 'Lossless GmbH <noreply@mail.lossless.com>',
|
||||
subject: 'A message with no body from @mojoio/mailgun test'
|
||||
});
|
||||
console.log('ok');
|
||||
await testMailgunAccount.sendSmartMail(emptyBodySmartmail, 'Sandbox Team <sandbox@mail.git.zone>');
|
||||
console.log('hey');
|
||||
});
|
||||
|
||||
tap.test('should retrieve a mail using a retrieval url', async () => {
|
||||
const result = await testMailgunAccount.retrieveSmartMailFromMessageUrl(
|
||||
'https://sw.api.mailgun.net/v3/domains/mail.lossless.one/messages/AgMFnnnAKC8xp_dDa79LyoxhloxtaVmnRA=='
|
||||
|
Reference in New Issue
Block a user