fix(test): resolve type error in shell-xml-safety.test.ts

This commit is contained in:
Aishanee Shah
2026-02-18 17:51:09 +00:00
parent e7eb1d5811
commit 9ed588c761

View File

@@ -91,7 +91,7 @@ describe('ShellTool XML Safety', () => {
expect(result.llmContent).toContain('</output>');
expect(result.llmContent).toContain('<exit_code>0</exit_code>');
const matches = result.llmContent.match(/]]>/g);
const matches = (result.llmContent as string).match(/]]>/g);
// Should have at least two ]]>: one from the sanitization and one from the wrapCData end.
expect(matches?.length).toBeGreaterThanOrEqual(2);
});