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