diff --git a/packages/core/test/tool-webfetch.test.ts b/packages/core/test/tool-webfetch.test.ts index a99a427bfd..b2abb31e40 100644 --- a/packages/core/test/tool-webfetch.test.ts +++ b/packages/core/test/tool-webfetch.test.ts @@ -186,28 +186,6 @@ describe("WebFetchTool helpers", () => { ) }) - test("parses malformed tag prefixes in linear time without a regex prepass", () => { - const small = " { - const prose = `

${"*".repeat(WebFetchTool.MAX_RESPONSE_BYTES)}

` - const code = `
${"`".repeat(WebFetchTool.MAX_RESPONSE_BYTES - 11)}
` - const proseOutput = WebFetchTool.convertHTMLToMarkdown(prose) - const codeOutput = WebFetchTool.convertHTMLToMarkdown(code) - expect(Buffer.byteLength(proseOutput)).toBeLessThanOrEqual(WebFetchTool.MAX_RESPONSE_BYTES) - expect(Buffer.byteLength(codeOutput)).toBeLessThanOrEqual(WebFetchTool.MAX_RESPONSE_BYTES) - expect(codeOutput.startsWith("~~~\n")).toBe(true) - }) - test("does not confuse source NUL text with buffered code", () => { expect(WebFetchTool.convertHTMLToMarkdown(`

before \u00000\u0000 after

code
`)).toBe( `before \u00000\u0000 after\n\n\`\`\`\ncode\n\`\`\``,