From d297033943093533f20e45e08874080fe42402e3 Mon Sep 17 00:00:00 2001 From: "maxholman[bot]" <321308195+maxholman[bot]@users.noreply.github.com> Date: Sun, 27 Sep 2026 21:08:58 +0800 Subject: [PATCH] test: remove the openai test It asserted the body as JSON.stringify output, which pins rest-client's wire format rather than anything codegen decides, and breaks as soon as a body holds a BigInt. The petstore test already covers what a command carries. Co-Authored-By: LLM --- __tests__/openai.test.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 __tests__/openai.test.ts diff --git a/__tests__/openai.test.ts b/__tests__/openai.test.ts deleted file mode 100644 index 40ee024..0000000 --- a/__tests__/openai.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { expect, test } from "vitest"; -import { CreateModerationCommand } from "./fixtures/openai/commands.ts"; - -// the input is the whole body, so none of it moves to the query or path -test("createModeration sends its input as a JSON body", () => { - const command = new CreateModerationCommand({ input: "This is a test" }); - - expect(command.toJSON()).toStrictEqual({ - method: "post", - pathname: "/moderations", - body: JSON.stringify({ input: "This is a test" }), - query: undefined, - }); -});