22 changed files with 396 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const AliyunSMS = require("./aliyun-sms"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new AliyunSMS(); |
|||
expect(notification.name).toBe("AliyunSMS"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Apprise = require("./apprise"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Apprise(); |
|||
expect(notification.name).toBe("apprise"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const DingDing = require("./dingding"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new DingDing(); |
|||
expect(notification.name).toBe("DingDing"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Discord = require("./discord"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Discord(); |
|||
expect(notification.name).toBe("discord"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Feishu = require("./feishu"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Feishu(); |
|||
expect(notification.name).toBe("Feishu"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Gotify = require("./gotify"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Gotify(); |
|||
expect(notification.name).toBe("gotify"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Line = require("./line"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Line(); |
|||
expect(notification.name).toBe("line"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const LunaSea = require("./lunasea"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new LunaSea(); |
|||
expect(notification.name).toBe("lunasea"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Matrix = require("./matrix"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Matrix(); |
|||
expect(notification.name).toBe("matrix"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// 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"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const NotificationProvider = require("./notification-provider"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new NotificationProvider(); |
|||
expect(notification.name).toBe(undefined); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Octopush = require("./octopush"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Octopush(); |
|||
expect(notification.name).toBe("octopush"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const PromoSMS = require("./promosms"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new PromoSMS(); |
|||
expect(notification.name).toBe("promosms"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// 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"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Pushover = require("./pushover"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Pushover(); |
|||
expect(notification.name).toBe("pushover"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Pushy = require("./pushy"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Pushy(); |
|||
expect(notification.name).toBe("pushy"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// 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"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Signal = require("./signal"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Signal(); |
|||
expect(notification.name).toBe("signal"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Slack = require("./slack"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Slack(); |
|||
expect(notification.name).toBe("slack"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Teams = require("./teams"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Teams(); |
|||
expect(notification.name).toBe("teams"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Telegram = require("./telegram"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Telegram(); |
|||
expect(notification.name).toBe("telegram"); |
|||
}); |
|||
}); |
@ -0,0 +1,18 @@ |
|||
// jest.mock("nodemailer", () => ({
|
|||
// createTransport: jest.fn(),
|
|||
// }));
|
|||
|
|||
// const mockNodeMailer = require("nodemailer");
|
|||
|
|||
const Webhook = require("./webhook"); |
|||
|
|||
beforeEach(() => { |
|||
// mockNodeMailer.createTransport.mockReset();
|
|||
}); |
|||
|
|||
describe("notification default information", () => { |
|||
it("should have the correct name", () => { |
|||
let notification = new Webhook(); |
|||
expect(notification.name).toBe("webhook"); |
|||
}); |
|||
}); |
Loading…
Reference in new issue