summaryrefslogtreecommitdiffstats
path: root/test/lib/sendgrid.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/sendgrid.test.js')
-rw-r--r--test/lib/sendgrid.test.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lib/sendgrid.test.js b/test/lib/sendgrid.test.js
index 23660ae..18df2b6 100644
--- a/test/lib/sendgrid.test.js
+++ b/test/lib/sendgrid.test.js
@@ -28,6 +28,13 @@ var smtp_params = {
text: 'This is an email.'
};
+var unicode_params = {
+ to: 'kyle.partridge@sendgrid.com',
+ from: 'kyle.partridge@sendgrid.com',
+ subject: 'Unicode Email!',
+ text: 'I can haz unicode? ✔'
+};
+
describe('SendGrid', function () {
var sendgrid;
beforeEach(function() {
@@ -68,6 +75,14 @@ describe('SendGrid', function () {
});
});
+ it('should allow unicode in emails', function(done) {
+ var mail = new Email(unicode_params);
+ sendgrid.smtp(mail, function(success, message) {
+ if (!success) should.fail(message);
+ done();
+ });
+ });
+
it('should report errors back to the user', function(done) {
var mail = new Email({});
sendgrid.smtp(mail, function(success, message) {