mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 01:41:42 +02:00
Cover markdown preformatted block actions
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
5ab9e314cb
commit
56a6528adb
1 file changed
+9
@@ -457,6 +457,15 @@ describe("MarkdownBody", () => {
|
||||
expect(html).toContain("lucide-copy");
|
||||
});
|
||||
|
||||
it("renders code block actions for indented preformatted markdown blocks", () => {
|
||||
const html = renderMarkdown("Plan:\n\n source fetch/sync -> signal inbox");
|
||||
|
||||
expect(html).toContain("paperclip-markdown-codeblock");
|
||||
expect(html).toContain("paperclip-markdown-codeblock-wrap");
|
||||
expect(html).toContain('aria-label="Wrap lines"');
|
||||
expect(html).toContain("paperclip-markdown-codeblock-copy");
|
||||
});
|
||||
|
||||
it("does not render a copy button on inline code", () => {
|
||||
const html = renderMarkdown("Reference `inline-code` here.");
|
||||
|
||||
|
||||
Reference in new issue
Block a user