From a959a8309db79fbee6477efd7ee541615e625627 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sat, 10 Oct 2026 02:37:03 +0800 Subject: [PATCH] test(json): remove assertions covered by CLI output consumers --- src/domain/jsonSerialization.test.ts | 10 ---------- 1 file changed, 10 deletions(-) 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(