From 3e1e0323468d3d967b59f95d57eaef61bbcee185 Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Wed, 25 Mar 2026 15:51:25 +0900 Subject: [PATCH] style: fix prettier formatting in formatting tests Co-Authored-By: Claude Opus 4.6 --- src/formatting.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/formatting.test.ts b/src/formatting.test.ts index 9bfb7a4..33cd0e9 100644 --- a/src/formatting.test.ts +++ b/src/formatting.test.ts @@ -214,8 +214,7 @@ describe('stripToolCallLeaks', () => { }); it('strips tool-call text surrounded by normal text', () => { - const input = - 'Hello\nto=functions.exec_command code {"cmd":"ls"}\nWorld'; + const input = 'Hello\nto=functions.exec_command code {"cmd":"ls"}\nWorld'; expect(stripToolCallLeaks(input)).toBe('Hello\n\nWorld'); }); @@ -239,8 +238,7 @@ describe('stripToolCallLeaks', () => { }); it('preserves code blocks discussing tool calls', () => { - const input = - '```\nto=functions.exec_command code {"cmd":"ls"}\n```'; + const input = '```\nto=functions.exec_command code {"cmd":"ls"}\n```'; // The tool-call inside backticks still gets stripped — this is intentional. // Defense layer prioritizes safety over preserving code examples. expect(stripToolCallLeaks(input)).toBe('```\n\n```');