0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added mocks mail receiver reset

no issue

- initiates the mail receiver reset to ensure it clears the mock inbox.
This commit is contained in:
Ronald Langeveld 2023-01-30 21:43:51 +08:00
parent af31e5d910
commit 4198083e21

View file

@ -199,6 +199,10 @@ const restore = () => {
mocks.webhookMockReceiver.reset();
}
if (mocks.mockMailReceiver) {
mocks.mockMailReceiver.reset();
}
mailService.GhostMailer.prototype.send = originalMailServiceSend;
};