test: remove duplicate result assertions before throwing guards

This commit is contained in:
morluto committed 2026-10-09 02:58:03 +08:00
1 parent 5945915f91
commit a1b7d40bb0
33 files changed
-62

No files matched your search

-1
View File
@@ -15,7 +15,6 @@ describe("MCP result encoding budget", () => {
{ result: "x".repeat(8191) + "😀" + '中文\n"'.repeat(20000) },
])("counts actual UTF-8 structured and escaped text bytes", (candidate) => {
const encoded = encodeToolResult(candidate);
expect(encoded.ok).toBe(true);
if (!encoded.ok) throw new Error("Expected complete encoding");
expect(encoded.text).toBe(JSON.stringify(candidate));
expect(encoded.bytes).toBe(