Init dayjs for backend.spec.js

pull/1213/head
Louis Lam 2022-10-11 22:09:18 +08:00
parent 39b6725163
commit d95e722658
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ const { UptimeKumaServer } = require("../server/uptime-kuma-server");
const Database = require("../server/database");
const {Settings} = require("../server/settings");
const fs = require("fs");
const dayjs = require("dayjs");
dayjs.extend(require("dayjs/plugin/utc"));
dayjs.extend(require("dayjs/plugin/timezone"));
jest.mock("axios");