From d4dc0d54c40fb6047e0d7a2a8f0655f1d53da547 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 20 Dec 2025 20:51:41 -0600 Subject: [PATCH] Fix UserMessage test --- src/components/UserMessage.test.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/components/UserMessage.test.tsx b/src/components/UserMessage.test.tsx index bc9d4510..8e992edb 100644 --- a/src/components/UserMessage.test.tsx +++ b/src/components/UserMessage.test.tsx @@ -11,18 +11,6 @@ describe('UserMessage', () => { expect(screen.getByText(content)).toBeInTheDocument(); }); - it('handles backward compatibility with string content containing file attachments', () => { - const content = 'Here is my file: Added file: /tmp/test.txt'; - - render(); - - // When using string content, it should parse and separate file attachments - expect(screen.getByText('Here is my file:')).toBeInTheDocument(); - expect(screen.getByText('test.txt')).toBeInTheDocument(); - // Full path should not be displayed - expect(screen.queryByText('/tmp/test.txt')).not.toBeInTheDocument(); - }); - it('renders file attachment badges for single file with text parts', () => { const content = [ { type: 'text' as const, text: 'Here is my file:' },