test(claude): update decloak tests for suffix-stripping fallback
This commit is contained in:
@@ -36,10 +36,10 @@ describe("Claude → Claude streaming passthrough (OAuth tool cloak)", () => {
|
||||
expect(outText).toBe(textChunk);
|
||||
});
|
||||
|
||||
it("is a no-op when no cloak map is present", () => {
|
||||
it("falls back to suffix-stripping when no cloak map is present", () => {
|
||||
const chunk = toolUseStart(CLOAKED);
|
||||
const [out] = translateResponse(FORMATS.CLAUDE, FORMATS.CLAUDE, chunk, {});
|
||||
expect(out).toBe(chunk);
|
||||
expect(out.content_block.name).toBe("run_code");
|
||||
});
|
||||
|
||||
it("tolerates the null flush chunk", () => {
|
||||
|
||||
Reference in New Issue
Block a user