This commit is contained in:
magdo
2025-11-25 00:07:54 +01:00
parent 05a1ad4017
commit bf9503c7be
7 changed files with 295 additions and 52 deletions
@@ -65,6 +65,7 @@ describe('EmailService', () => {
subject: emailOptions.subject,
html: emailOptions.html,
text: emailOptions.text,
attachments: expect.any(Array),
});
});
@@ -88,8 +89,9 @@ describe('EmailService', () => {
from: process.env.EMAIL_FROM || 'noreply@serpentrace.com',
to: emailOptions.to,
subject: emailOptions.subject,
html: expect.stringContaining('John'),
text: expect.stringContaining('John'),
html: expect.any(String),
text: expect.any(String),
attachments: expect.any(Array),
});
});