style: fix prettier formatting in formatting tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eyejoker
2026-03-25 15:51:25 +09:00
parent 273d52d3da
commit 3e1e032346

View File

@@ -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```');