Skip to content

Commit 837cc92

Browse files
chore: generate
1 parent ca77b8f commit 837cc92

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎packages/opencode/test/provider/cf-ai-gateway-e2e.test.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@ function isRecord(value: unknown): value is Record<string, unknown> {
2727

2828
beforeEach(() => {
2929
captured = null
30-
const handle = async (
31-
input: Parameters<typeof fetch>[0],
32-
init?: Parameters<typeof fetch>[1],
33-
): Promise<Response> => {
34-
const url =
35-
typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url
30+
const handle = async (input: Parameters<typeof fetch>[0], init?: Parameters<typeof fetch>[1]): Promise<Response> => {
31+
const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url
3632
if (url.startsWith("https://gateway.ai.cloudflare.com/")) {
3733
const bodyText = typeof init?.body === "string" ? init.body : ""
3834
captured = { url, outerBody: bodyText ? JSON.parse(bodyText) : null }

0 commit comments

Comments
 (0)