Closed pioneer32 closed 6 years ago
When fake-smtp-server is used for automated testing, restarting the server is the only way to remove all caught emails
fake-smtp-server
This PR adds an additional end-point DELETE /api/emails which can be fetched between tests in order to delete all emails kept by the server.
DELETE /api/emails
Thanks !
The problem:
When
fake-smtp-server
is used for automated testing, restarting the server is the only way to remove all caught emailsThe solution:
This PR adds an additional end-point
DELETE /api/emails
which can be fetched between tests in order to delete all emails kept by the server.