mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +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
|
|
@ -13,6 +13,11 @@ import type {
|
|||
import { renderWithProviders } from '../../../test-utils/render.js';
|
||||
|
||||
describe('ToolConfirmationMessage', () => {
|
||||
const mockConfig = {
|
||||
isTrustedFolder: () => true,
|
||||
getIdeMode: () => false,
|
||||
} as unknown as Config;
|
||||
|
||||
it('should not display urls if prompt and url are the same', () => {
|
||||
const confirmationDetails: ToolCallConfirmationDetails = {
|
||||
type: 'info',
|
||||
|
|
@ -25,6 +30,7 @@ describe('ToolConfirmationMessage', () => {
|
|||
const { lastFrame } = renderWithProviders(
|
||||
<ToolConfirmationMessage
|
||||
confirmationDetails={confirmationDetails}
|
||||
config={mockConfig}
|
||||
availableTerminalHeight={30}
|
||||
terminalWidth={80}
|
||||
/>,
|
||||
|
|
@ -48,6 +54,7 @@ describe('ToolConfirmationMessage', () => {
|
|||
const { lastFrame } = renderWithProviders(
|
||||
<ToolConfirmationMessage
|
||||
confirmationDetails={confirmationDetails}
|
||||
config={mockConfig}
|
||||
availableTerminalHeight={30}
|
||||
terminalWidth={80}
|
||||
/>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue