(payload: object)
| 9 | } from "../../src/plugin/openai/codex" |
| 10 | |
| 11 | function createTestJwt(payload: object): string { |
| 12 | const header = Buffer.from(JSON.stringify({ alg: "none" })).toString("base64url") |
| 13 | const body = Buffer.from(JSON.stringify(payload)).toString("base64url") |
| 14 | return `${header}.${body}.sig` |
| 15 | } |
| 16 | |
| 17 | describe("plugin.codex", () => { |
| 18 | test("escapes provider errors in callback HTML", () => { |
no test coverage detected