From 9902013b6dc4d50bce69ffee2b2604b6e54e5a30 Mon Sep 17 00:00:00 2001
From: nelsonic Hi! Thank you for signing up with your
- email address: {{email}}!
Please click the link to verify your address: {{link}} diff --git a/test/send.test.js b/test/send.test.js index ce634a7..981f2cd 100644 --- a/test/send.test.js +++ b/test/send.test.js @@ -51,3 +51,22 @@ test('simulate bounce and complaint', function (t) { t.end(); }) }); + +test('simulate verification email', function (t) { + const event = { + "email": [ + "success@simulator.amazonses.com", + // "nelson@dwyl.com" + ], + "template": "verify", + "name": "Testy McTestface", + "id": 1, + "key": "simulate_verify", + "link": "https://dwyl.com/person/verify/StTqXEQ2l-Y" + }; // no template + send(event, function(err, data) { + console.log(data); + t.equal(data.MessageId.length, 60, "Sent! message_id: " + data.MessageId); + t.end(); + }) +});