/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { render } from '../../../test-utils/render.js'; import { ThinkingMessage } from './ThinkingMessage.js'; describe('ThinkingMessage', () => { it('renders thinking header with count', () => { const { lastFrame } = render( , ); expect(lastFrame()).toContain('Thinking'); expect(lastFrame()).toContain('(2)'); }); it('renders with single thought', () => { const { lastFrame } = render( , ); expect(lastFrame()).toContain('(1)'); }); it('renders empty state gracefully', () => { const { lastFrame } = render( , ); expect(lastFrame()).toContain('(0)'); }); });