diff options
author | scottmotte <scott@scottmotte.com> | 2013-11-07 08:41:50 -0800 |
---|---|---|
committer | scottmotte <scott@scottmotte.com> | 2013-11-07 08:41:50 -0800 |
commit | 1c00e5807fe21cd475d14767a5c6593f6c3acb0e (patch) | |
tree | ff8d34900bbe388c951d5ae2496c8b35570f0718 /test/lib/email.test.js | |
parent | 097a639404d49ab670d513c305105b54aa391e84 (diff) | |
download | sendgrid-nodejs-1c00e5807fe21cd475d14767a5c6593f6c3acb0e.zip sendgrid-nodejs-1c00e5807fe21cd475d14767a5c6593f6c3acb0e.tar.gz sendgrid-nodejs-1c00e5807fe21cd475d14767a5c6593f6c3acb0e.tar.bz2 |
Add the ability to setFrom
Diffstat (limited to 'test/lib/email.test.js')
-rw-r--r-- | test/lib/email.test.js | 7 |
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(); |