From 064ea5a782391b8cbb8a41457a4bd4880d5d72f0 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 18 Jan 2023 18:25:32 +0800 Subject: [PATCH] Add text in the payload in the test --- packages/api/test/routers/emails.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/api/test/routers/emails.test.ts b/packages/api/test/routers/emails.test.ts index e8bdf5f15..313eba38b 100644 --- a/packages/api/test/routers/emails.test.ts +++ b/packages/api/test/routers/emails.test.ts @@ -37,6 +37,7 @@ describe('Emails Router', () => { const to = newsletterEmail const subject = 'test subject' const html = 'test html' + const text = 'test text' beforeEach(async () => { sinon.replace( @@ -60,7 +61,7 @@ describe('Emails Router', () => { const data = { message: { data: Buffer.from( - JSON.stringify({ from, to, subject, html }) + JSON.stringify({ from, to, subject, html, text }) ).toString('base64'), publishTime: new Date().toISOString(), }, @@ -82,7 +83,7 @@ describe('Emails Router', () => { const data = { message: { data: Buffer.from( - JSON.stringify({ from, to, subject, html }) + JSON.stringify({ from, to, subject, html, text }) ).toString('base64'), publishTime: new Date().toISOString(), },