From 01b432fe32257aa98dddfac02ef66d784b06e83e Mon Sep 17 00:00:00 2001 From: Yassine R Date: Mon, 30 Oct 2023 15:12:40 +0100 Subject: [PATCH] fix(mails): fix unit test contact support --- .../contactSupportEmailRenderer.service.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/mails/services/templates-renderers/contact-support/contactSupportEmailRenderer.service.test.ts b/packages/backend/src/mails/services/templates-renderers/contact-support/contactSupportEmailRenderer.service.test.ts index 1d4a1842f5..4eefcd4097 100644 --- a/packages/backend/src/mails/services/templates-renderers/contact-support/contactSupportEmailRenderer.service.test.ts +++ b/packages/backend/src/mails/services/templates-renderers/contact-support/contactSupportEmailRenderer.service.test.ts @@ -21,7 +21,9 @@ describe("guideUtilisateurEmailRenderer", () => { const { subject, text, html } = await contactSupportEmailRenderer.renderTemplate(model); - expect(subject).toEqual(`[DOMIFA] Nouveau message sur le support`); + expect(subject).toEqual( + `[DOMIFA] Nouveau message sur le support - Asso des bois bleus` + ); expect(text).toContain(model.email); expect(text).toContain(model.name); expect(text).toContain(model.content);