diff --git a/packages/wrangler/src/__tests__/ai.local.test.ts b/packages/wrangler/src/__tests__/ai.local.test.ts index 7b11bf8eb8bb..ef310ab9bba3 100644 --- a/packages/wrangler/src/__tests__/ai.local.test.ts +++ b/packages/wrangler/src/__tests__/ai.local.test.ts @@ -12,14 +12,17 @@ describe("ai", () => { const url = "http://internal.ai/ai/test/path?version=123"; const resp = await AIFetcher( new Request(url, { - method: 'PATCH', + method: "PATCH", headers: { "x-example": "test", }, }) ); - expect(await resp.json()).toEqual({ xForwardedFor: url, method: 'PATCH' }); + expect(await resp.json()).toEqual({ + xForwardedFor: url, + method: "PATCH", + }); }); }); }); @@ -32,7 +35,7 @@ function mockAIProxyRequest() { (c) => { return HttpResponse.json({ xForwardedFor: c.request.headers.get("X-Forwarded-Host"), - method: c.request.method + method: c.request.method, }); }, { once: true }