mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:15:59 +00:00
test: remove duplicate result assertions before throwing guards
This commit is contained in:
1 parent
5945915f91
commit
a1b7d40bb0
33 files changed
-62
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user