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
1 changed files with 3 additions and 3 deletions

View File

@ -9,11 +9,11 @@ describe('Email Unit Tests', () => {
let email;
let sendFnStub;
const template = {
const template = () => ({
subject: 'foo',
text: 'bar',
html: '<strong>bar</strong>'
};
});
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);