Exploring the interface of a mail adapter
Add some tests and demonstrate the adapter loading interface
This commit is contained in:
committed by
Florent Vilmart
parent
d9f1e00345
commit
8dc37b9d30
8
spec/MockEmailAdapterWithOptions.js
Normal file
8
spec/MockEmailAdapterWithOptions.js
Normal file
@@ -0,0 +1,8 @@
|
||||
module.exports = options => {
|
||||
if (!options) {
|
||||
throw "Options were not provided"
|
||||
}
|
||||
return {
|
||||
sendVerificationEmail: () => Promise.resolve()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user