Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

test(api): expect manual redirects from outbound requests

Tin4e6138da1cc0
diff --git a/tests/api/utils/credential-webhooks.test.ts b/tests/api/utils/credential-webhooks.test.ts
index e0a494613..e09aecccf 100644
--- a/tests/api/utils/credential-webhooks.test.ts
+++ b/tests/api/utils/credential-webhooks.test.ts
@@ -28,7 +28,7 @@ describe.each(clients)(
expect(isSensitiveOutboundRequest()).toBe(true);
expect(init).toMatchObject({
method: "POST",
- redirect: "error",
+ redirect: "manual",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
});
diff --git a/tests/api/utils/verify-turnstile.test.ts b/tests/api/utils/verify-turnstile.test.ts
index 873cf5378..7544c96da 100644
--- a/tests/api/utils/verify-turnstile.test.ts
+++ b/tests/api/utils/verify-turnstile.test.ts
@@ -55,7 +55,7 @@ describe("Turnstile verification contract", () => {
expect(fetchMock).toHaveBeenCalledWith(
expect.any(String),
expect.objectContaining({
- redirect: "error",
+ redirect: "manual",
signal: expect.any(AbortSignal),
}),
);