From d95e7226586fb504e08d59666e58e5ac6eb534fe Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 11 Oct 2022 22:09:18 +0800 Subject: [PATCH] Init dayjs for backend.spec.js --- test/backend.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/backend.spec.js b/test/backend.spec.js index 5b9fa92c6..644a0fd08 100644 --- a/test/backend.spec.js +++ b/test/backend.spec.js @@ -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");