Kuma/server/notification-providers/rocket-chat.spec.js
2021-10-21 02:56:52 -05:00

18 lines
463 B
JavaScript

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