Files
openclaw/extensions/openai/embedding-batch.test.ts
2026-06-04 21:33:54 -04:00

12 lines
426 B
TypeScript

// Openai tests cover embedding batch plugin behavior.
import { describe, expect, it } from "vitest";
import { parseOpenAiBatchOutput } from "./embedding-batch.js";
describe("OpenAI embedding batch output", () => {
it("wraps malformed JSONL output", () => {
expect(() => parseOpenAiBatchOutput('{"custom_id":"ok"}\n{not json')).toThrow(
"OpenAI embedding batch output contained malformed JSONL",
);
});
});