From d39b8541f8802110be947a7bbe11b5d38b09918d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 07:15:47 +0000 Subject: [PATCH] test: prune redundant markdown extractor plain-text negatives --- src/line/markdown-to-line.test.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/line/markdown-to-line.test.ts b/src/line/markdown-to-line.test.ts index 7deff0b6ee2..40d974d1593 100644 --- a/src/line/markdown-to-line.test.ts +++ b/src/line/markdown-to-line.test.ts @@ -139,15 +139,6 @@ echo "world" expect(codeBlocks[0].language).toBe("python"); expect(codeBlocks[1].language).toBe("bash"); }); - - it("returns empty when no code blocks present", () => { - const text = "No code here, just text."; - - const { codeBlocks, textWithoutCode } = extractCodeBlocks(text); - - expect(codeBlocks).toHaveLength(0); - expect(textWithoutCode).toBe(text); - }); }); describe("extractLinks", () => { @@ -161,15 +152,6 @@ describe("extractLinks", () => { expect(links[1]).toEqual({ text: "GitHub", url: "https://github.com" }); expect(textWithLinks).toBe("Check out Google and GitHub."); }); - - it("handles text without links", () => { - const text = "No links here."; - - const { links, textWithLinks } = extractLinks(text); - - expect(links).toHaveLength(0); - expect(textWithLinks).toBe(text); - }); }); describe("stripMarkdown", () => {