mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
fix tests
This commit is contained in:
@@ -545,6 +545,7 @@ describe('gemini.tsx main function kitty protocol', () => {
|
||||
getQuestion: () => '',
|
||||
getSandbox: () => undefined,
|
||||
getListExtensions: () => flag === 'listExtensions',
|
||||
getAcpMode: () => false,
|
||||
getListSessions: () => flag === 'listSessions',
|
||||
getDeleteSession: () => (flag === 'deleteSession' ? value : undefined),
|
||||
getExtensions: () => [
|
||||
@@ -619,6 +620,7 @@ describe('gemini.tsx main function kitty protocol', () => {
|
||||
const mockConfig = createMockConfig({
|
||||
isInteractive: () => false,
|
||||
getQuestion: () => '',
|
||||
getAcpMode: () => false,
|
||||
getSandbox: () => ({ command: 'docker', image: 'test-image' }),
|
||||
});
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ vi.mock('./config/config.js', () => ({
|
||||
getSandbox: vi.fn(() => false),
|
||||
getQuestion: vi.fn(() => ''),
|
||||
isInteractive: () => false,
|
||||
getAcpMode: vi.fn(() => false),
|
||||
storage: { initialize: vi.fn().mockResolvedValue(undefined) },
|
||||
} as unknown as Config),
|
||||
parseArguments: vi.fn().mockResolvedValue({}),
|
||||
|
||||
Reference in New Issue
Block a user