Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { loadWebConfig } from "./web.js";
|
||||
|
||||
describe("loadWebConfig magic-link explicit-disable handling", () => {
|
||||
test("treats falsy boolean aliases as a clean disable without a diagnostic", () => {
|
||||
for (const value of ["false", "0", "no", "off"]) {
|
||||
const result = loadWebConfig({ AUTH_MAGIC_LINK_ENABLED: value, AUTH_MAGIC_LINK_TOKEN_TTL_MINUTES: "15" });
|
||||
|
||||
expect(result.config.magicLink).toEqual({ enabled: false, tokenTtlMinutes: undefined });
|
||||
// An explicit disable must not raise the invalid-boolean diagnostic.
|
||||
expect(result.diagnostics.some((diagnostic) => diagnostic.name === "AUTH_MAGIC_LINK_ENABLED")).toBe(false);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user