Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -36,10 +36,13 @@ describe("resolveCaptchaConfig", () => {
|
||||
expect(isCaptchaConfigured(cfg)).toBe(true);
|
||||
});
|
||||
|
||||
it("defaults failOpen to true and respects explicit false", () => {
|
||||
expect(resolveCaptchaConfig({}).failOpen).toBe(true);
|
||||
it("defaults failOpen to false and honors opt-in only in local runtimes", () => {
|
||||
expect(resolveCaptchaConfig({}).failOpen).toBe(false);
|
||||
expect(resolveCaptchaConfig({ CAPTCHA_FAIL_OPEN: "false" }).failOpen).toBe(false);
|
||||
expect(resolveCaptchaConfig({ CAPTCHA_FAIL_OPEN: "true" }).failOpen).toBe(true);
|
||||
expect(resolveCaptchaConfig({ CAPTCHA_FAIL_OPEN: "true" }).failOpen).toBe(false);
|
||||
expect(resolveCaptchaConfig({ NODE_ENV: "development", CAPTCHA_FAIL_OPEN: "true" }).failOpen).toBe(true);
|
||||
expect(resolveCaptchaConfig({ NODE_ENV: "test", CAPTCHA_FAIL_OPEN: "true" }).failOpen).toBe(true);
|
||||
expect(resolveCaptchaConfig({ NODE_ENV: "production", CAPTCHA_FAIL_OPEN: "true" }).failOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("treats blank env values as undefined and reports unconfigured", () => {
|
||||
|
||||
Reference in new issue
Block a user