UNPKG

simple-node-mailer-and-viewer

Version:

a simple wrapper around nodemailer-smtp-transport for configuring and sending quick emails via smtp

12 lines (8 loc) 274 B
const Mail = require('./index') describe('Name of the group', () => { const mailMock = jest.fn(Mail.mailer) const newmail = new mailMock("hello") it("mock to have been called", () => { expect(mailMock).toHaveBeenCalledWith("hello", "tope") }) });