From 21799c99501304b4deebea1c0ee5c8e85c647cf1 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 15 May 2023 22:47:07 +0200 Subject: [PATCH] fix unit test --- backend/src/emails/sendEmailVariants.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/backend/src/emails/sendEmailVariants.test.ts b/backend/src/emails/sendEmailVariants.test.ts index 2b590324d..61edcc7f0 100644 --- a/backend/src/emails/sendEmailVariants.test.ts +++ b/backend/src/emails/sendEmailVariants.test.ts @@ -159,7 +159,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', ) @@ -287,7 +287,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', ) @@ -414,7 +414,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', ) @@ -541,7 +541,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', ) @@ -661,7 +661,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', ) @@ -785,7 +785,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', ) @@ -911,7 +911,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', ) @@ -1037,7 +1037,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', ) @@ -1159,7 +1159,7 @@ describe('sendEmailVariants', () => { expect(result.originalMessage.html).toContain( 'If you have any further questions, please contact our support', ) - expect(result.originalMessage.html).toContain('support@supportmail.com') + expect(result.originalMessage.html).toContain(CONFIG.COMMUNITY_SUPPORT_MAIL) expect(result.originalMessage.html).toContain( 'src="https://gdd.gradido.net/img/brand/green.png"', )