describe('Email Options', () => { test('Shoud set the correct email credentials', () => { require('../../src/modules/email/email'); expect(nodemailer.createTransport).toBeCalledTimes(1); expect(nodemailer.createTransport.mock.calls[0][0]).toMatchSnapshot(); expect(winston.error).not.toBeCalled(); }); });