/* eslint-disable @typescript-eslint/no-explicit-any */ import Decimal from 'decimal.js-light' import { testEnvironment } from '@test/helpers' import { logger, i18n as localization } from '@test/testSetup' import CONFIG from '@/config' import { sendAddedContributionMessageEmail, sendAccountActivationEmail, sendAccountMultiRegistrationEmail, sendContributionConfirmedEmail, sendContributionDeniedEmail, sendContributionDeletedEmail, sendResetPasswordEmail, sendTransactionLinkRedeemedEmail, sendTransactionReceivedEmail, } from './sendEmailVariants' import { sendEmailTranslated } from './sendEmailTranslated' let con: any let testEnv: any beforeAll(async () => { testEnv = await testEnvironment(logger, localization) con = testEnv.con // await cleanDB() }) afterAll(async () => { // await cleanDB() await con.close() }) jest.mock('./sendEmailTranslated', () => { const originalModule = jest.requireActual('./sendEmailTranslated') return { __esModule: true, sendEmailTranslated: jest.fn((a) => originalModule.sendEmailTranslated(a)), } }) describe('sendEmailVariants', () => { // eslint-disable-next-line @typescript-eslint/no-explicit-any let result: any describe('sendAddedContributionMessageEmail', () => { beforeAll(async () => { result = await sendAddedContributionMessageEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', contributionMemo: 'My contribution.', }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'addedContributionMessage', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', contributionMemo: 'My contribution.', overviewURL: CONFIG.EMAIL_LINK_OVERVIEW, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Message about your common good contribution', html: expect.any(String), text: expect.stringContaining('GRADIDO: MESSAGE ABOUT YOUR COMMON GOOD CONTRIBUTION'), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain( 'Gradido: Message about your common good contribution', ) expect(result.originalMessage.html).toContain( '>Gradido: Message about your common good contribution', ) expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'you have received a message from Bibi Bloxberg regarding your common good contribution “My contribution.”.', ) expect(result.originalMessage.html).toContain( 'To view and reply to the message, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab!', ) expect(result.originalMessage.html).toContain( `Link to your account: ${CONFIG.EMAIL_LINK_OVERVIEW}`, ) expect(result.originalMessage.html).toContain('Please do not reply to this email!') expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) describe('sendAccountActivationEmail', () => { beforeAll(async () => { result = await sendAccountActivationEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', activationLink: 'http://localhost/checkEmail/6627633878930542284', timeDurationObject: { hours: 23, minutes: 30 }, }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'accountActivation', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', activationLink: 'http://localhost/checkEmail/6627633878930542284', timeDurationObject: { hours: 23, minutes: 30 }, resendLink: CONFIG.EMAIL_LINK_FORGOTPASSWORD, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Email Verification', html: expect.any(String), text: expect.stringContaining('GRADIDO: EMAIL VERIFICATION'), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('Gradido: Email Verification') expect(result.originalMessage.html).toContain('>Gradido: Email Verification') expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'Your email address has just been registered with Gradido.', ) expect(result.originalMessage.html).toContain( 'Please click on this link to complete the registration and activate your Gradido account:', ) expect(result.originalMessage.html).toContain( 'http://localhost/checkEmail/6627633878930542284', ) expect(result.originalMessage.html).toContain( 'or copy the link above into your browser window.', ) expect(result.originalMessage.html).toContain( 'The link has a validity of 23 hours and 30 minutes. If the validity of the link has already expired, you can have a new link sent to you here:', ) expect(result.originalMessage.html).toContain( `${CONFIG.EMAIL_LINK_FORGOTPASSWORD}`, ) expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) describe('sendAccountMultiRegistrationEmail', () => { beforeAll(async () => { result = await sendAccountMultiRegistrationEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'accountMultiRegistration', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', resendLink: CONFIG.EMAIL_LINK_FORGOTPASSWORD, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Try To Register Again With Your Email', html: expect.any(String), text: expect.stringContaining('GRADIDO: TRY TO REGISTER AGAIN WITH YOUR EMAIL'), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain( 'Gradido: Try To Register Again With Your Email', ) expect(result.originalMessage.html).toContain( '>Gradido: Try To Register Again With Your Email', ) expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'Your email address has just been used again to register an account with Gradido.', ) expect(result.originalMessage.html).toContain( 'However, an account already exists for your email address.', ) expect(result.originalMessage.html).toContain( 'Please click on the following link if you have forgotten your password:', ) expect(result.originalMessage.html).toContain( `${CONFIG.EMAIL_LINK_FORGOTPASSWORD}`, ) expect(result.originalMessage.html).toContain( 'or copy the link above into your browser window.', ) expect(result.originalMessage.html).toContain( 'If you are not the one who tried to register again, please contact our support:
support@supportmail.com', ) expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) describe('sendContributionConfirmedEmail', () => { beforeAll(async () => { result = await sendContributionConfirmedEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', contributionMemo: 'My contribution.', contributionAmount: new Decimal(23.54), }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'contributionConfirmed', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', contributionMemo: 'My contribution.', contributionAmount: '23.54', overviewURL: CONFIG.EMAIL_LINK_OVERVIEW, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Your contribution to the common good was confirmed', html: expect.any(String), text: expect.stringContaining( 'GRADIDO: YOUR CONTRIBUTION TO THE COMMON GOOD WAS CONFIRMED', ), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain( 'Gradido: Your contribution to the common good was confirmed', ) expect(result.originalMessage.html).toContain( '>Gradido: Your contribution to the common good was confirmed', ) expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'Your public good contribution “My contribution.” has just been confirmed by Bibi Bloxberg and credited to your Gradido account.', ) expect(result.originalMessage.html).toContain('Amount: 23.54 GDD') expect(result.originalMessage.html).toContain( `Link to your account: ${CONFIG.EMAIL_LINK_OVERVIEW}`, ) expect(result.originalMessage.html).toContain('Please do not reply to this email!') expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) describe('sendContributionDeniedEmail', () => { beforeAll(async () => { result = await sendContributionDeniedEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', contributionMemo: 'My contribution.', }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'contributionDenied', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', contributionMemo: 'My contribution.', overviewURL: CONFIG.EMAIL_LINK_OVERVIEW, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Your common good contribution was rejected', html: expect.any(String), text: expect.stringContaining('GRADIDO: YOUR COMMON GOOD CONTRIBUTION WAS REJECTED'), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain( 'Gradido: Your common good contribution was rejected', ) expect(result.originalMessage.html).toContain( '>Gradido: Your common good contribution was rejected', ) expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'Your public good contribution “My contribution.” was rejected by Bibi Bloxberg.', ) expect(result.originalMessage.html).toContain( 'To see your common good contributions and related messages, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab!', ) expect(result.originalMessage.html).toContain( `Link to your account: ${CONFIG.EMAIL_LINK_OVERVIEW}`, ) expect(result.originalMessage.html).toContain('Please do not reply to this email!') expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) describe('sendContributionDeletedEmail', () => { beforeAll(async () => { result = await sendContributionDeletedEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', contributionMemo: 'My contribution.', }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'contributionDeleted', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', contributionMemo: 'My contribution.', overviewURL: CONFIG.EMAIL_LINK_OVERVIEW, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Your common good contribution was deleted', html: expect.any(String), text: expect.stringContaining('GRADIDO: YOUR COMMON GOOD CONTRIBUTION WAS DELETED'), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain( 'Gradido: Your common good contribution was deleted', ) expect(result.originalMessage.html).toContain( '>Gradido: Your common good contribution was deleted', ) expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'Your public good contribution “My contribution.” was deleted by Bibi Bloxberg.', ) expect(result.originalMessage.html).toContain( 'To see your common good contributions and related messages, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab!', ) expect(result.originalMessage.html).toContain( `Link to your account: ${CONFIG.EMAIL_LINK_OVERVIEW}`, ) expect(result.originalMessage.html).toContain('Please do not reply to this email!') expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) describe('sendResetPasswordEmail', () => { beforeAll(async () => { result = await sendResetPasswordEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', resetLink: 'http://localhost/reset-password/3762660021544901417', timeDurationObject: { hours: 23, minutes: 30 }, }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'resetPassword', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', resetLink: 'http://localhost/reset-password/3762660021544901417', timeDurationObject: { hours: 23, minutes: 30 }, resendLink: CONFIG.EMAIL_LINK_FORGOTPASSWORD, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Reset password', html: expect.any(String), text: expect.stringContaining('GRADIDO: RESET PASSWORD'), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('Gradido: Reset password') expect(result.originalMessage.html).toContain('>Gradido: Reset password') expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'You, or someone else, requested a password reset for this account.', ) expect(result.originalMessage.html).toContain('If it was you, please click on the link:') expect(result.originalMessage.html).toContain( 'http://localhost/reset-password/3762660021544901417', ) expect(result.originalMessage.html).toContain( 'or copy the link above into your browser window.', ) expect(result.originalMessage.html).toContain( 'The link has a validity of 23 hours and 30 minutes. If the validity of the link has already expired, you can have a new link sent to you here:', ) expect(result.originalMessage.html).toContain( `${CONFIG.EMAIL_LINK_FORGOTPASSWORD}`, ) expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) describe('sendTransactionLinkRedeemedEmail', () => { beforeAll(async () => { result = await sendTransactionLinkRedeemedEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', senderEmail: 'bibi@bloxberg.de', transactionMemo: 'You deserve it! 🙏🏼', transactionAmount: new Decimal(17.65), }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'transactionLinkRedeemed', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', senderEmail: 'bibi@bloxberg.de', transactionMemo: 'You deserve it! 🙏🏼', transactionAmount: '17.65', overviewURL: CONFIG.EMAIL_LINK_OVERVIEW, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Bibi Bloxberg has redeemed your Gradido link', html: expect.any(String), text: expect.stringContaining('BIBI BLOXBERG HAS REDEEMED YOUR GRADIDO LINK'), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain( 'Gradido: Bibi Bloxberg has redeemed your Gradido link', ) expect(result.originalMessage.html).toContain( '>Gradido: Bibi Bloxberg has redeemed your Gradido link', ) expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'Bibi Bloxberg (bibi@bloxberg.de) has just redeemed your link.', ) expect(result.originalMessage.html).toContain('Amount: 17.65 GDD') expect(result.originalMessage.html).toContain('Message: You deserve it! 🙏🏼') expect(result.originalMessage.html).toContain( `You can find transaction details in your Gradido account: ${CONFIG.EMAIL_LINK_OVERVIEW}`, ) expect(result.originalMessage.html).toContain('Please do not reply to this email!') expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) describe('sendTransactionReceivedEmail', () => { beforeAll(async () => { result = await sendTransactionReceivedEmail({ firstName: 'Peter', lastName: 'Lustig', email: 'peter@lustig.de', language: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', senderEmail: 'bibi@bloxberg.de', transactionAmount: new Decimal(37.4), }) }) describe('calls "sendEmailTranslated"', () => { it('with expected parameters', () => { expect(sendEmailTranslated).toBeCalledWith({ receiver: { to: 'Peter Lustig ', }, template: 'transactionReceived', locals: { firstName: 'Peter', lastName: 'Lustig', locale: 'en', senderFirstName: 'Bibi', senderLastName: 'Bloxberg', senderEmail: 'bibi@bloxberg.de', transactionAmount: '37.40', overviewURL: CONFIG.EMAIL_LINK_OVERVIEW, supportEmail: CONFIG.COMMUNITY_SUPPORT_MAIL, communityURL: CONFIG.COMMUNITY_URL, }, }) }) it('has expected result', () => { expect(result).toMatchObject({ envelope: { from: 'info@gradido.net', to: ['peter@lustig.de'], }, message: expect.any(String), originalMessage: expect.objectContaining({ to: 'Peter Lustig ', from: 'Gradido (do not answer) ', attachments: [], subject: 'Gradido: Bibi Bloxberg has sent you 37.40 Gradido', html: expect.any(String), text: expect.stringContaining('GRADIDO: BIBI BLOXBERG HAS SENT YOU 37.40 GRADIDO'), }), }) expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain('') expect(result.originalMessage.html).toContain( 'Gradido: Bibi Bloxberg has sent you 37.40 Gradido', ) expect(result.originalMessage.html).toContain( '>Gradido: Bibi Bloxberg has sent you 37.40 Gradido', ) expect(result.originalMessage.html).toContain('Hello Peter Lustig') expect(result.originalMessage.html).toContain( 'You have just received 37.40 GDD from Bibi Bloxberg (bibi@bloxberg.de).', ) expect(result.originalMessage.html).toContain( `You can find transaction details in your Gradido account: ${CONFIG.EMAIL_LINK_OVERVIEW}`, ) expect(result.originalMessage.html).toContain('Please do not reply to this email!') expect(result.originalMessage.html).toContain('Kind regards,
your Gradido team') expect(result.originalMessage.html).toContain('—————') expect(result.originalMessage.html).toContain( '
Gradido-Akademie Logo

Gradido-Akademie
Institut für Wirtschaftsbionik
Pfarrweg 2
74653 Künzelsau
Deutschland
support@supportmail.com
http://localhost/', ) }) }) }) })