Add emoji thought bubble with fallback

This commit is contained in:
Dmitry Lyalin
2026-01-31 11:35:59 -05:00
parent 4620d5bb15
commit a55d278905
2 changed files with 31 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ import { render } from '../../../test-utils/render.js';
import { ThinkingMessage } from './ThinkingMessage.js';
describe('ThinkingMessage', () => {
it('renders thinking header', () => {
it('renders thinking subject', () => {
const { lastFrame } = render(
<ThinkingMessage
thought={{ subject: 'Planning', description: 'test' }}
@@ -17,7 +17,7 @@ describe('ThinkingMessage', () => {
/>,
);
expect(lastFrame()).toContain('Thinking');
expect(lastFrame()).toContain('Planning');
});
it('renders with thought subject', () => {
@@ -54,6 +54,6 @@ describe('ThinkingMessage', () => {
/>,
);
expect(lastFrame()).toContain('Thinking');
expect(lastFrame()).not.toContain('Planning');
});
});