From dd72c54ccd4e9713e635002a759cb568fdd25ea5 Mon Sep 17 00:00:00 2001 From: Meg Hein <64171419+meghein@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:10:05 -0800 Subject: [PATCH] fix: tests --- index.test.js | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/index.test.js b/index.test.js index ae7bcde..7588cc3 100644 --- a/index.test.js +++ b/index.test.js @@ -28,37 +28,25 @@ const testHtml = '\n' const testMessage = { - to: 'to@ignoreme.com', from: 'from@ignoreme.com', + to: 'to@ignoreme.com', + subject: 'This is a plain text subject', + replyTo: 'reply@ignoreme.com', cc: 'cc@ignoreme.com', bcc: 'bcc@ignoreme.com', - replyTo: 'reply@ignoreme.com', - subject: 'This is a plain text subject', html: testHtml, - text: 'This is a plain text email message.', - attachments: [ - { - filename: 'text1.txt', - content: 'hello world!' - } - ] + text: 'This is a plain text email message.' } const responseWhenTemplatesPresent = { - to: 'to@ignoreme.com', from: 'from@ignoreme.com', + to: 'to@ignoreme.com', + subject: 'This is a plain text subject', + replyTo: 'reply@ignoreme.com', cc: 'cc@ignoreme.com', bcc: 'bcc@ignoreme.com', - replyTo: 'reply@ignoreme.com', - subject: 'This is a plain text subject', html: testHtml, - text: 'This is a test text message to Test Name', - attachments: [ - { - filename: 'text1.txt', - content: 'hello world!' - } - ] + text: 'This is a test text message to Test Name' } test('mail, nodemailer & view decorators exist', async ({ teardown, ok }) => {