The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): reproduce URL directive copied from code block
Denis Hfb1547203ebd
diff --git a/apps/desktop/src/components/chat/shiki-highlighter.test.ts b/apps/desktop/src/components/chat/shiki-highlighter.test.tsindex abefd6556d9..9839d4ca1d9 100644--- a/apps/desktop/src/components/chat/shiki-highlighter.test.ts+++ b/apps/desktop/src/components/chat/shiki-highlighter.test.ts@@ -1,6 +1,6 @@import { describe, expect, it } from 'vitest'-import { chunkByLines, exceedsHighlightBudget } from '@/components/chat/shiki-highlighter'+import { chunkByLines, copyableCodeText, exceedsHighlightBudget } from '@/components/chat/shiki-highlighter'describe('exceedsHighlightBudget', () => {it('highlights normal-sized blocks', () => {@@ -31,3 +31,12 @@ describe('chunkByLines', () => {expect(chunks.reduce((sum, chunk) => sum + chunk.lines, 0)).toBe(1000)})})+++describe('copyableCodeText', () => {+ it('unwraps URL reference directives before copying a code block', () => {+ expect(copyableCodeText('curl @url:https://example.com/image.png -o image.png')).toBe(+ 'curl https://example.com/image.png -o image.png'+ )+ })+})