mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Fix tests for email 'transactionLinkRedeemed'
This commit is contained in:
parent
bd6ba95fd3
commit
5e8af000f4
@ -563,18 +563,18 @@ describe('sendEmailVariants', () => {
|
|||||||
to: 'Peter Lustig <peter@lustig.de>',
|
to: 'Peter Lustig <peter@lustig.de>',
|
||||||
from: 'Gradido (do not answer) <info@gradido.net>',
|
from: 'Gradido (do not answer) <info@gradido.net>',
|
||||||
attachments: [],
|
attachments: [],
|
||||||
subject: 'Gradido: Your Gradido link has been redeemed',
|
subject: 'Gradido: Bibi Bloxberg has redeemed your Gradido link',
|
||||||
html: expect.any(String),
|
html: expect.any(String),
|
||||||
text: expect.stringContaining('GRADIDO: YOUR GRADIDO LINK HAS BEEN REDEEMED'),
|
text: expect.stringContaining('BIBI BLOXBERG HAS REDEEMED YOUR GRADIDO LINK'),
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
expect(result.originalMessage.html).toContain('<!DOCTYPE html>')
|
expect(result.originalMessage.html).toContain('<!DOCTYPE html>')
|
||||||
expect(result.originalMessage.html).toContain('<html lang="en">')
|
expect(result.originalMessage.html).toContain('<html lang="en">')
|
||||||
expect(result.originalMessage.html).toContain(
|
expect(result.originalMessage.html).toContain(
|
||||||
'<title>Gradido: Your Gradido link has been redeemed</title>',
|
'<title>Gradido: Bibi Bloxberg has redeemed your Gradido link</title>',
|
||||||
)
|
)
|
||||||
expect(result.originalMessage.html).toContain(
|
expect(result.originalMessage.html).toContain(
|
||||||
'>Gradido: Your Gradido link has been redeemed</h1>',
|
'>Gradido: Bibi Bloxberg has redeemed your Gradido link</h1>',
|
||||||
)
|
)
|
||||||
expect(result.originalMessage.html).toContain('Hello Peter Lustig')
|
expect(result.originalMessage.html).toContain('Hello Peter Lustig')
|
||||||
expect(result.originalMessage.html).toContain(
|
expect(result.originalMessage.html).toContain(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user