Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

test(json): remove assertions covered by CLI output consumers

morlutoa959a8309db7
diff --git a/src/domain/jsonSerialization.test.ts b/src/domain/jsonSerialization.test.ts
index 45caf7898..560b89d29 100644
--- a/src/domain/jsonSerialization.test.ts
+++ b/src/domain/jsonSerialization.test.ts
@@ -36,16 +36,6 @@ describe("streamed JSON representation", () => {
expect(JSON.parse(parts.join(""))).toEqual(value);
});
- it("rejects a cycle while allowing repeated references", () => {
- const shared = { value: 1 };
- expect([...jsonParts({ left: shared, right: shared })].join("")).toBe(
- JSON.stringify({ left: shared, right: shared }),
- );
- const cycle: { self?: unknown } = {};
- cycle.self = cycle;
- expect(() => [...jsonParts(cycle)]).toThrow("circular reference");
- });
-
it("matches existing canonical bytes for numeric keys, Unicode, and shared values", () => {
const shared = { z: -0, a: [1e-7, 1e30, "雪😀\ud800"] };
const ownKeys: unknown = JSON.parse(