change in one testcase mail.to to CONFIG.EMAIL_TEST_RECEIVER

This commit is contained in:
Claus-Peter Hübner 2022-09-19 17:47:46 +02:00
parent f9194beca3
commit 3afc8c65c3

View File

@ -73,7 +73,7 @@ describe('sendEMail', () => {
it('calls sendMail of transporter', () => {
expect((createTransport as jest.Mock).mock.results[0].value.sendMail).toBeCalledWith({
from: `Gradido (nicht antworten) <${CONFIG.EMAIL_SENDER}>`,
to: 'receiver@mail.org',
to: `${CONFIG.EMAIL_TEST_RECEIVER}`,
cc: 'support@gradido.net',
subject: 'Subject',
text: 'Text text text',