summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottmotte <scott@scottmotte.com>2013-07-22 16:28:13 +0000
committerscottmotte <scott@scottmotte.com>2013-07-22 16:28:13 +0000
commit720f27663eb84efa5338c56b81d828309d3decdf (patch)
tree63f177f432d074e454cf781afa68644a1dc1288a
parente660713d0d8dd585b4ce926bbe9ac144e2a2f057 (diff)
downloadsendgrid-nodejs-720f27663eb84efa5338c56b81d828309d3decdf.zip
sendgrid-nodejs-720f27663eb84efa5338c56b81d828309d3decdf.tar.gz
sendgrid-nodejs-720f27663eb84efa5338c56b81d828309d3decdf.tar.bz2
Add additional integration spec for empty payload
-rw-r--r--test/integration/sendgrid.test.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/sendgrid.test.js b/test/integration/sendgrid.test.js
index 525d84f..9a0b919 100644
--- a/test/integration/sendgrid.test.js
+++ b/test/integration/sendgrid.test.js
@@ -28,6 +28,16 @@ describe('SendGrid #skip', function () {
payload.subject += "rest ";
});
+ it('has a blank send payload', function(done) {
+ sendgrid.send({}, function(success, message) {
+ expect(success).to.be.false;
+
+ done();
+ });
+
+ done();
+ });
+
it('has an optional callback', function(done) {
payload.subject += "has an optional callback";