summaryrefslogtreecommitdiffstats
path: root/test/integration/sendgrid.test.js
diff options
context:
space:
mode:
authorscottmotte <scott@scottmotte.com>2013-07-23 10:15:51 -0700
committerscottmotte <scott@scottmotte.com>2013-07-23 10:15:51 -0700
commitc7c8cc35a8f04c8c6c9fe0f413eb04ad0f9d5596 (patch)
tree2ae58682684df831321b77afb964ddf4dd5c57e0 /test/integration/sendgrid.test.js
parent0b49f89e7a40cc48248c3cfb16b15fbf3526241d (diff)
downloadsendgrid-nodejs-c7c8cc35a8f04c8c6c9fe0f413eb04ad0f9d5596.zip
sendgrid-nodejs-c7c8cc35a8f04c8c6c9fe0f413eb04ad0f9d5596.tar.gz
sendgrid-nodejs-c7c8cc35a8f04c8c6c9fe0f413eb04ad0f9d5596.tar.bz2
Additional spec to display errors for smtp
Diffstat (limited to 'test/integration/sendgrid.test.js')
-rw-r--r--test/integration/sendgrid.test.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/integration/sendgrid.test.js b/test/integration/sendgrid.test.js
index 5bb8734..c753798 100644
--- a/test/integration/sendgrid.test.js
+++ b/test/integration/sendgrid.test.js
@@ -360,12 +360,20 @@ describe('SendGrid #skip', function () {
var payload;
beforeEach(function() {
- sendgrid.SMTP = "STUB";
+ sendgrid.SMTP = "SMTP";
payload = Object.create(default_payload);
payload.subject += "smtp ";
});
+ it('has a blank send payload', function(done) {
+ sendgrid.smtp({}, function(err, json) {
+ expect(err).to.equal("501 Syntax error");
+
+ done();
+ });
+ });
+
it('has an optional callback', function(done) {
payload.subject += "has an optional callback";