mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add text in the payload in the test
This commit is contained in:
parent
d60890d154
commit
064ea5a782
1 changed files with 3 additions and 2 deletions
|
|
@ -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(),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue