From 1c53ff7f17b2a464e66d21767488119c683b225a Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sat, 19 Aug 2017 17:17:22 +0800 Subject: [PATCH] Fix email unit test --- test/unit/email-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/email-test.js b/test/unit/email-test.js index 83a93eb..64b0f1d 100644 --- a/test/unit/email-test.js +++ b/test/unit/email-test.js @@ -9,11 +9,11 @@ describe('Email Unit Tests', () => { let email; let sendFnStub; - const template = { + const template = () => ({ subject: 'foo', text: 'bar', html: 'bar' - }; + }); const sender = { name: 'Foo Bar', email: 'foo@bar.com' @@ -41,7 +41,7 @@ describe('Email Unit Tests', () => { sendFnStub = sinon.stub(); sandbox.stub(nodemailer, 'createTransport').returns({ - templateSender: () => sendFnStub + sendMail: sendFnStub }); sandbox.stub(log);