mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix(server): http error parsing on endpoints without a default response (#12927)
This commit is contained in:
parent
8d515adac5
commit
005528ab5e
13 changed files with 162 additions and 18 deletions
|
|
@ -616,11 +616,6 @@ describe(NotificationService.name, () => {
|
|||
await expect(sut.handleSendEmail({ html: '', subject: '', text: '', to: '' })).resolves.toBe(JobStatus.SKIPPED);
|
||||
});
|
||||
|
||||
it('should fail if email could not be sent', async () => {
|
||||
systemMock.get.mockResolvedValue({ notifications: { smtp: { enabled: true } } });
|
||||
await expect(sut.handleSendEmail({ html: '', subject: '', text: '', to: '' })).resolves.toBe(JobStatus.FAILED);
|
||||
});
|
||||
|
||||
it('should send mail successfully', async () => {
|
||||
systemMock.get.mockResolvedValue({ notifications: { smtp: { enabled: true, from: 'test@immich.app' } } });
|
||||
notificationMock.sendEmail.mockResolvedValue({ messageId: '', response: '' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue