mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
test link duration in mails
This commit is contained in:
parent
f1686523df
commit
cc0efb2204
@ -15,6 +15,7 @@ describe('sendAccountActivationEmail', () => {
|
|||||||
firstName: 'Peter',
|
firstName: 'Peter',
|
||||||
lastName: 'Lustig',
|
lastName: 'Lustig',
|
||||||
email: 'peter@lustig.de',
|
email: 'peter@lustig.de',
|
||||||
|
duration: '23 hours and 30 minutes',
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -23,7 +24,9 @@ describe('sendAccountActivationEmail', () => {
|
|||||||
to: `Peter Lustig <peter@lustig.de>`,
|
to: `Peter Lustig <peter@lustig.de>`,
|
||||||
subject: 'Gradido: E-Mail Überprüfung',
|
subject: 'Gradido: E-Mail Überprüfung',
|
||||||
text:
|
text:
|
||||||
expect.stringContaining('Hallo Peter Lustig') && expect.stringContaining('activationLink'),
|
expect.stringContaining('Hallo Peter Lustig') &&
|
||||||
|
expect.stringContaining('activationLink') &&
|
||||||
|
expect.stringContaining('23 Stunden und 30 Minuten'),
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -15,6 +15,7 @@ describe('sendResetPasswordEmail', () => {
|
|||||||
firstName: 'Peter',
|
firstName: 'Peter',
|
||||||
lastName: 'Lustig',
|
lastName: 'Lustig',
|
||||||
email: 'peter@lustig.de',
|
email: 'peter@lustig.de',
|
||||||
|
duration: '23 hours and 30 minutes',
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -22,7 +23,10 @@ describe('sendResetPasswordEmail', () => {
|
|||||||
expect(sendEMail).toBeCalledWith({
|
expect(sendEMail).toBeCalledWith({
|
||||||
to: `Peter Lustig <peter@lustig.de>`,
|
to: `Peter Lustig <peter@lustig.de>`,
|
||||||
subject: 'Gradido: Passwort zurücksetzen',
|
subject: 'Gradido: Passwort zurücksetzen',
|
||||||
text: expect.stringContaining('Hallo Peter Lustig') && expect.stringContaining('resetLink'),
|
text:
|
||||||
|
expect.stringContaining('Hallo Peter Lustig') &&
|
||||||
|
expect.stringContaining('resetLink') &&
|
||||||
|
expect.stringContaining('23 Stunden und 30 Minuten'),
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user