Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
feat(captcha): tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ABCxFF committed Sep 10, 2024
1 parent 2be2b6a commit 9562e2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/captcha/tests/e2e_guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions modules/captcha/tests/e2e_verify_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test(
await ctx.modules.captcha.verifyCaptchaToken({
provider: {
turnstile: {
secret: "1x0000000000000000000000000000000AA",
secret: "2x0000000000000000000000000000000AA",
sitekey: "" // doesn't really matter here
}
},
Expand All @@ -63,7 +63,7 @@ test(
await ctx.modules.captcha.verifyCaptchaToken({
provider: {
turnstile: {
secret: "2x0000000000000000000000000000000AA",
secret: "1x0000000000000000000000000000000AA",
sitekey: "" // doesn't really matter here
}
},
Expand Down

0 comments on commit 9562e2e

Please sign in to comment.