summaryrefslogtreecommitdiffstats
path: root/test/lib/email.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/email.test.js')
-rw-r--r--test/lib/email.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lib/email.test.js b/test/lib/email.test.js
index b850286..d83dcdb 100644
--- a/test/lib/email.test.js
+++ b/test/lib/email.test.js
@@ -193,6 +193,13 @@ describe('Email', function () {
});
});
+ it('should be possible to setFrom', function() {
+ var email = new Email();
+ expect(email.from).to.be.empty;
+ email.setFrom('kyle.partridge@sendgrid.com');
+ expect(email.from).to.eql('kyle.partridge@sendgrid.com');
+ });
+
describe('files', function() {
it('should support adding attachments via path', function() {
var email = new Email();