mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-10 22:41:14 +00:00
Add test case for directives inside triple backticks
This commit is contained in:
parent
5efd95a8c5
commit
f10ab35312
1 changed files with 14 additions and 0 deletions
|
|
@ -64,4 +64,18 @@ suite("DirectiveStreamingParser", () => {
|
|||
} as ToolDirective,
|
||||
])
|
||||
})
|
||||
|
||||
test("should not parse directives inside triple backticks as directives", () => {
|
||||
const input =
|
||||
"Some text with\n```\n<log_message>\n<message>This is a warning message</message>\n<level>warn</level>\n</log_message>\n```\nMore text"
|
||||
const result = DirectiveStreamingParser.parse(input)
|
||||
expect(result).toEqual([
|
||||
{
|
||||
type: "text",
|
||||
content:
|
||||
"Some text with\n```\n<log_message>\n<message>This is a warning message</message>\n<level>warn</level>\n</log_message>\n```\nMore text",
|
||||
partial: true,
|
||||
} as TextDirective,
|
||||
])
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue