Skip to content

Commit 2dbe217

Browse files
saphidclaude
andcommitted
test(web): assert the clamped terminal record survives decoding
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 977c0ab commit 2dbe217

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/lib/composerContextRecords.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,9 @@ describe("composerContextRecords", () => {
288288
text: `${"t".repeat(63_985)}${"😀".repeat(8)}`,
289289
});
290290
expect(terminal.text).toBe(`${"t".repeat(63_985)}\n… truncated …`);
291-
expect(() => decodeMessageContext({ version: 1, records: [terminal] })).not.toThrow();
291+
expect(decodeMessageContext({ version: 1, records: [terminal] }).records).toMatchObject([
292+
{ kind: "terminal", text: terminal.text },
293+
]);
292294
});
293295

294296
it("finds the destination collision for different legacy terminal messages", () => {

0 commit comments

Comments
 (0)