Fix email unit test

This commit is contained in:
Tankred Hase 2017-08-19 17:17:22 +08:00 committed by Martin Hauck
parent e259c0f51f
commit 1c53ff7f17
No known key found for this signature in database
GPG Key ID: 16A77ADCADE027B1

View File

@ -9,11 +9,11 @@ describe('Email Unit Tests', () => {
let email; let email;
let sendFnStub; let sendFnStub;
const template = { const template = () => ({
subject: 'foo', subject: 'foo',
text: 'bar', text: 'bar',
html: '<strong>bar</strong>' html: '<strong>bar</strong>'
}; });
const sender = { const sender = {
name: 'Foo Bar', name: 'Foo Bar',
email: 'foo@bar.com' email: 'foo@bar.com'
@ -41,7 +41,7 @@ describe('Email Unit Tests', () => {
sendFnStub = sinon.stub(); sendFnStub = sinon.stub();
sandbox.stub(nodemailer, 'createTransport').returns({ sandbox.stub(nodemailer, 'createTransport').returns({
templateSender: () => sendFnStub sendMail: sendFnStub
}); });
sandbox.stub(log); sandbox.stub(log);