Skip to content

Commit

Permalink
Lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Nov 21, 2024
1 parent 43743f4 commit 6136571
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/wrangler/src/__tests__/ai.local.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
});
});
});
Expand All @@ -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 }
Expand Down

0 comments on commit 6136571

Please sign in to comment.