mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 17:40:43 +08:00
[test] reset-password
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
const { genSecret } = require("../src/util");
|
||||
|
||||
beforeAll(() => {
|
||||
|
||||
});
|
||||
const { genSecret, sleep } = require("../src/util");
|
||||
|
||||
describe("Test genSecret", () => {
|
||||
|
||||
beforeAll(() => {
|
||||
|
||||
});
|
||||
|
||||
it("should be correct length", () => {
|
||||
let secret = genSecret(-1);
|
||||
expect(secret).toEqual("");
|
||||
@@ -34,4 +34,11 @@ describe("Test genSecret", () => {
|
||||
expect(secret).toContain("A");
|
||||
expect(secret).toContain("9");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe("Test reset-password", () => {
|
||||
it("should able to run", async () => {
|
||||
await require("../extra/reset-password").main();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user