From 9562e2ec45d9ab76a3413d25405a137a22eba8e0 Mon Sep 17 00:00:00 2001 From: ABCxFF <79597906+ABCxFF@users.noreply.github.com> Date: Mon, 9 Sep 2024 22:06:24 -0400 Subject: [PATCH] feat(captcha): tests --- modules/captcha/tests/e2e_guard.ts | 2 +- modules/captcha/tests/e2e_verify_token.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/captcha/tests/e2e_guard.ts b/modules/captcha/tests/e2e_guard.ts index 9adafa0..824fc67 100644 --- a/modules/captcha/tests/e2e_guard.ts +++ b/modules/captcha/tests/e2e_guard.ts @@ -22,7 +22,7 @@ test("e2e success and failure", async (ctx: TestContext) => { } assertEquals(false, await didFail(async () => { - for (let i = 0; i < REQUESTS - 1; ++i) { + for (let i = 0; i < REQUESTS; ++i) { await ctx.modules.captcha.guard({ type: "ip", key: "aaaa", diff --git a/modules/captcha/tests/e2e_verify_token.ts b/modules/captcha/tests/e2e_verify_token.ts index 0448f17..2e014cf 100644 --- a/modules/captcha/tests/e2e_verify_token.ts +++ b/modules/captcha/tests/e2e_verify_token.ts @@ -49,7 +49,7 @@ test( await ctx.modules.captcha.verifyCaptchaToken({ provider: { turnstile: { - secret: "1x0000000000000000000000000000000AA", + secret: "2x0000000000000000000000000000000AA", sitekey: "" // doesn't really matter here } }, @@ -63,7 +63,7 @@ test( await ctx.modules.captcha.verifyCaptchaToken({ provider: { turnstile: { - secret: "2x0000000000000000000000000000000AA", + secret: "1x0000000000000000000000000000000AA", sitekey: "" // doesn't really matter here } },