mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 06:29:57 +08:00
[test] add test for i18n currentLocale
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
const { Page, Browser } = require("puppeteer");
|
||||
const { sleep } = require("../src/util");
|
||||
const axios = require("axios");
|
||||
const { currentLocale } = require("../src/i18n");
|
||||
|
||||
/**
|
||||
* Set back the correct data type for page object
|
||||
@@ -223,6 +224,14 @@ describe("Init", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("Test i18n.js", () => {
|
||||
|
||||
it("currentLocale()", () => {
|
||||
expect(currentLocale()).toMatch("");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
async function login(username, password) {
|
||||
await input(page, "#floatingInput", username);
|
||||
await input(page, "#floatingPassword", password);
|
||||
|
@@ -6,5 +6,4 @@ FROM ubuntu
|
||||
# RUN ln -s /usr/bin/nodejs /usr/bin/node
|
||||
# RUN node -v
|
||||
|
||||
COPY ./install.sh .
|
||||
RUN bash install.sh local /opt/uptime-kuma 3000 0.0.0.0
|
||||
RUN curl -o kuma_install.sh http://git.kuma.pet/install.sh && bash kuma_install.sh local /opt/uptime-kuma 3000 0.0.0.0
|
||||
|
Reference in New Issue
Block a user