Init dayjs for backend.spec.js
This commit is contained in:
parent
39b6725163
commit
d95e722658
|
@ -6,6 +6,9 @@ const { UptimeKumaServer } = require("../server/uptime-kuma-server");
|
||||||
const Database = require("../server/database");
|
const Database = require("../server/database");
|
||||||
const {Settings} = require("../server/settings");
|
const {Settings} = require("../server/settings");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
const dayjs = require("dayjs");
|
||||||
|
dayjs.extend(require("dayjs/plugin/utc"));
|
||||||
|
dayjs.extend(require("dayjs/plugin/timezone"));
|
||||||
|
|
||||||
jest.mock("axios");
|
jest.mock("axios");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue