style: fix prettier formatting in formatting tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -214,8 +214,7 @@ describe('stripToolCallLeaks', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('strips tool-call text surrounded by normal text', () => {
|
it('strips tool-call text surrounded by normal text', () => {
|
||||||
const input =
|
const input = 'Hello\nto=functions.exec_command code {"cmd":"ls"}\nWorld';
|
||||||
'Hello\nto=functions.exec_command code {"cmd":"ls"}\nWorld';
|
|
||||||
expect(stripToolCallLeaks(input)).toBe('Hello\n\nWorld');
|
expect(stripToolCallLeaks(input)).toBe('Hello\n\nWorld');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -239,8 +238,7 @@ describe('stripToolCallLeaks', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('preserves code blocks discussing tool calls', () => {
|
it('preserves code blocks discussing tool calls', () => {
|
||||||
const input =
|
const input = '```\nto=functions.exec_command code {"cmd":"ls"}\n```';
|
||||||
'```\nto=functions.exec_command code {"cmd":"ls"}\n```';
|
|
||||||
// The tool-call inside backticks still gets stripped — this is intentional.
|
// The tool-call inside backticks still gets stripped — this is intentional.
|
||||||
// Defense layer prioritizes safety over preserving code examples.
|
// Defense layer prioritizes safety over preserving code examples.
|
||||||
expect(stripToolCallLeaks(input)).toBe('```\n\n```');
|
expect(stripToolCallLeaks(input)).toBe('```\n\n```');
|
||||||
|
|||||||
Reference in New Issue
Block a user