mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 15:40:57 -07:00
fix(test): resolve type error in shell-xml-safety.test.ts
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user