Skip to content

Commit

Permalink
fix test that failed in node 20 but passed in node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Mar 15, 2024
1 parent de8e9b6 commit fb0ce33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/http-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("handleResponse", () => {
const resp = new Response("not json", { headers });
const result = await handleResponse(resp);
expect(result).toMatchObject({
error: new SyntaxError("Unexpected token o in JSON at position 1"),
error: expect.any(SyntaxError),
statusCode: 200,
text: "not json",
type: "client_error",
Expand Down

0 comments on commit fb0ce33

Please sign in to comment.