fix(core): update

This commit is contained in:
2020-08-13 01:37:26 +00:00
parent 0412cecfe5
commit 108f483823
6 changed files with 143 additions and 150 deletions

View File

@ -20,7 +20,7 @@ tap.test('should create a smartmail', async () => {
testSmartmail = new smartmail.Smartmail({
body: 'hi there. This is the body.',
from: 'Lossless GmbH <noreply@mail.lossless.com>',
subject: 'TestMessage from @mojoio/mailgun test'
subject: 'TestMessage from @mojoio/mailgun test',
});
expect(testSmartmail).to.be.instanceOf(smartmail.Smartmail);
});
@ -33,9 +33,12 @@ tap.test('should send a smartmail with empty body', async () => {
const emptyBodySmartmail = new smartmail.Smartmail<IMailgunMessage>({
body: '',
from: 'Lossless GmbH <noreply@mail.lossless.one>',
subject: 'A message with no body from @mojoio/mailgun test'
subject: 'A message with no body from @mojoio/mailgun test',
});
await testMailgunAccount.sendSmartMail(emptyBodySmartmail, 'Sandbox Team <sandbox@mail.git.zone>');
await testMailgunAccount.sendSmartMail(
emptyBodySmartmail,
'Sandbox Team <sandbox@mail.git.zone>'
);
});
tap.test('should retrieve a mail using a retrieval url', async () => {