Replace mailgun adapter with mock adapter (#7321)

This commit is contained in:
Manuel
2021-04-06 16:32:48 +02:00
committed by GitHub
parent 7042552507
commit a28433f16e
10 changed files with 1409 additions and 1693 deletions

View File

@@ -0,0 +1,15 @@
/**
* A mock mail adapter for testing.
*/
class MockMailAdapter {
constructor(options = {}) {
if (options.throw) {
throw 'MockMailAdapterConstructor';
}
}
sendMail() {
return 'MockMailAdapterSendMail';
}
}
module.exports = MockMailAdapter;

View File

@@ -0,0 +1,6 @@
{
"name": "mock-mail-adapter",
"version": "1.0.0",
"description": "Mock mail adapter for tests.",
"main": "index.js"
}