mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-14 16:42:35 +02:00
18 lines
463 B
JavaScript
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");
|
|
});
|
|
});
|