refactor: streamline codebase, unify duplicated modules, and consolidate test suite (#4307)

* refactor: streamline codebase, unify duplicated modules, and consolidate tests

* fix(test): batch discovered test files into Windows-safe command lines
This commit is contained in:
陈大猫 authored and GitHub committed 2026-11-23 11:00:14 +08:00
1 parent f2c71874cf
commit ad3d0cfeda
406 files changed
+10232 -24299

No files matched your search

+1 -3
View File
@@ -31,12 +31,10 @@ test("keyboard-interactive dialog shows a field label and an inline TOTP action"
assert.match(modalSource, /data-totp-fill=\{fillPlacement\}/);
assert.match(modalSource, /variant="secondary"/);
assert.doesNotMatch(modalSource, /variant=\{fillPlacement/);
assert.match(modalSource, /totpPrompt\.shared\.mjs/);
assert.match(modalSource, /totpPrompt\.shared\.cjs/);
const shared = require("../domain/totpPrompt.shared.cjs") as { NON_TOTP_PROMPT: RegExp };
const runtime = require("../domain/totp.shared.cjs") as { NON_TOTP_PROMPT: RegExp };
const esm = await import("../domain/totpPrompt.shared.mjs");
assert.equal(shared.NON_TOTP_PROMPT, runtime.NON_TOTP_PROMPT);
assert.equal(esm.NON_TOTP_PROMPT.source, shared.NON_TOTP_PROMPT.source);
assert.doesNotMatch(modalSource, /ring-primary/);
assert.doesNotMatch(modalSource, /className="w-full"/);
assert.doesNotMatch(modalSource, /onTypeTotp/);