forked from arithmetric/aws-lambda-ses-forwarder
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix arithmetric#114 Sender email without name
- Loading branch information
Fabrice Daugan
committed
Jan 16, 2020
1 parent
d5cb050
commit 33f461e
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,8 @@ describe('index.js', function() { | |
email: { | ||
source: "[email protected]" | ||
}, | ||
emailData: fs.readFileSync("test/assets/message.simplefrom.txt").toString(), | ||
emailData: | ||
fs.readFileSync("test/assets/message.simplefrom.txt").toString(), | ||
log: console.log, | ||
recipients: ["[email protected]"], | ||
originalRecipient: "[email protected]" | ||
|
@@ -52,15 +53,16 @@ describe('index.js', function() { | |
}); | ||
}); | ||
|
||
it('should process email data and handle the simple from format having a custom fromMail', function(done) { | ||
it('should allow overriding the simple From header in emails', function(done) { | ||
var data = { | ||
config: { | ||
fromEmail: "[email protected]" | ||
}, | ||
email: { | ||
source: "[email protected]" | ||
}, | ||
emailData: fs.readFileSync("test/assets/message.simplefrom.txt").toString(), | ||
emailData: | ||
fs.readFileSync("test/assets/message.simplefrom.txt").toString(), | ||
log: console.log, | ||
recipients: ["[email protected]"], | ||
originalRecipient: "[email protected]" | ||
|