fix(core): update

This commit is contained in:
2020-04-26 23:24:03 +00:00
parent 6ee7c6af76
commit 5490be1033
5 changed files with 271 additions and 373 deletions

View File

@ -19,14 +19,14 @@ tap.test('should create a mailgun account', async () => {
tap.test('should create a smartmail', async () => {
testSmartmail = new smartmail.Smartmail({
body: 'hi there. This is the body.',
from: 'noreply@mail.lossless.com',
subject: 'hi there. This is the subject'
from: 'Lossless GmbH <noreply@mail.lossless.com>',
subject: 'TestMessage from @mojoio/mailgun test'
});
return testSmartmail;
});
tap.test('should send a smartmail', async () => {
testMailgunAccount.sendSmartMail(testSmartmail, 'sandbox@mail.git.zone');
await testMailgunAccount.sendSmartMail(testSmartmail, 'Sandbox Team <sandbox@mail.git.zone>');
});
tap.test('should retrieve a mail using a retrieval url', async () => {
@ -34,7 +34,7 @@ tap.test('should retrieve a mail using a retrieval url', async () => {
if (result) {
result.options.subject = 'hi there. This is a testmail with attachment';
result.options.from = 'noreply@mail.lossless.com';
testMailgunAccount.sendSmartMail(result, 'sandbox@mail.git.zone');
await testMailgunAccount.sendSmartMail(result, 'Sandbox Team <sandbox@mail.git.zone>');
}
});