mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
Make config non optional in ToolConfirmationMessage (#7083)
This commit is contained in:
parent
52dae2c583
commit
4e49ee4c73
5 changed files with 17 additions and 7 deletions
|
|
@ -10,6 +10,7 @@ import { HistoryItemDisplay } from './HistoryItemDisplay.js';
|
|||
import type { HistoryItem } from '../types.js';
|
||||
import { MessageType } from '../types.js';
|
||||
import { SessionStatsProvider } from '../contexts/SessionContext.js';
|
||||
import type { Config } from '@google/gemini-cli-core';
|
||||
|
||||
// Mock child components
|
||||
vi.mock('./messages/ToolGroupMessage.js', () => ({
|
||||
|
|
@ -17,11 +18,13 @@ vi.mock('./messages/ToolGroupMessage.js', () => ({
|
|||
}));
|
||||
|
||||
describe('<HistoryItemDisplay />', () => {
|
||||
const mockConfig = {} as unknown as Config;
|
||||
const baseItem = {
|
||||
id: 1,
|
||||
timestamp: 12345,
|
||||
isPending: false,
|
||||
terminalWidth: 80,
|
||||
config: mockConfig,
|
||||
};
|
||||
|
||||
it('renders UserMessage for "user" type', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue