移除验证码输入框
This commit is contained in:
14
tests/auth-login-panel.test.ts
Normal file
14
tests/auth-login-panel.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("AuthLoginPanel", () => {
|
||||
it("does not render captcha controls", async () => {
|
||||
const source = await readFile(join(process.cwd(), "components", "auth-login-panel.tsx"), "utf8");
|
||||
|
||||
expect(source).not.toContain("auth-captcha-row");
|
||||
expect(source).not.toContain("auth-captcha-button");
|
||||
expect(source).not.toContain("/api/auth/captcha");
|
||||
expect(source).not.toContain("randomStr");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user