// jest.mock("nodemailer", () => ({ // createTransport: jest.fn(), // })); // const mockNodeMailer = require("nodemailer"); const Mattermost = require("./mattermost"); beforeEach(() => { // mockNodeMailer.createTransport.mockReset(); }); describe("notification default information", () => { it("should have the correct name", () => { let notification = new Mattermost(); expect(notification.name).toBe("mattermost"); }); });