mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 01:07:46 +00:00
# 🚀 Sync Gemini CLI v0.2.1 - Major Feature Update (#483)
This commit is contained in:
@@ -25,6 +25,7 @@ vi.mock('vscode', () => ({
|
||||
close: vi.fn(),
|
||||
},
|
||||
showTextDocument: vi.fn(),
|
||||
showWorkspaceFolderPick: vi.fn(),
|
||||
},
|
||||
workspace: {
|
||||
workspaceFolders: [],
|
||||
@@ -80,8 +81,7 @@ describe('activate', () => {
|
||||
vi.mocked(context.globalState.get).mockReturnValue(undefined);
|
||||
await activate(context);
|
||||
expect(showInformationMessageMock).toHaveBeenCalledWith(
|
||||
'Qwen Code Companion extension successfully installed. Please restart your terminal to enable full IDE integration.',
|
||||
'Run Qwen Code',
|
||||
'Qwen Code Companion extension successfully installed.',
|
||||
);
|
||||
});
|
||||
|
||||
@@ -99,8 +99,10 @@ describe('activate', () => {
|
||||
await activate(context);
|
||||
expect(showInformationMessageMock).toHaveBeenCalled();
|
||||
await new Promise(process.nextTick); // Wait for the promise to resolve
|
||||
expect(vscode.commands.executeCommand).toHaveBeenCalledWith(
|
||||
'qwen-code.runQwenCode',
|
||||
);
|
||||
const commandCallback = vi
|
||||
.mocked(vscode.commands.registerCommand)
|
||||
.mock.calls.find((call) => call[0] === 'qwen-code.runQwenCode')?.[1];
|
||||
|
||||
expect(commandCallback).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user