mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-04 06:30:53 +00:00
parent
ab1c483cab
commit
1a2906a8ad
16 changed files with 412 additions and 442 deletions
|
|
@ -36,13 +36,6 @@ import {
|
|||
HistoryItemToolGroup,
|
||||
} from '../types.js';
|
||||
|
||||
vi.mock('./useTerminalSize', () => ({
|
||||
useTerminalSize: () => ({
|
||||
columns: 80,
|
||||
rows: 24,
|
||||
}),
|
||||
}));
|
||||
|
||||
// Mocks
|
||||
vi.mock('@google/gemini-cli-core', async () => {
|
||||
const actual = await vi.importActual('@google/gemini-cli-core');
|
||||
|
|
@ -231,8 +224,8 @@ describe('useReactToolScheduler in YOLO Mode', () => {
|
|||
request.args,
|
||||
expect.any(AbortSignal),
|
||||
undefined,
|
||||
80,
|
||||
24,
|
||||
undefined,
|
||||
undefined,
|
||||
);
|
||||
|
||||
// Check that onComplete was called with success
|
||||
|
|
@ -383,8 +376,8 @@ describe('useReactToolScheduler', () => {
|
|||
request.args,
|
||||
expect.any(AbortSignal),
|
||||
undefined,
|
||||
80,
|
||||
24,
|
||||
undefined,
|
||||
undefined,
|
||||
);
|
||||
expect(onComplete).toHaveBeenCalledWith([
|
||||
expect.objectContaining({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue