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

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);