mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
refactor: maintain 1 GeminiChat per GeminiClient (#710)
This commit is contained in:
@@ -405,10 +405,9 @@ describe('useGeminiStream', () => {
|
||||
} as TrackedCancelledToolCall,
|
||||
];
|
||||
|
||||
let hookResult: any;
|
||||
await act(async () => {
|
||||
hookResult = renderTestHook(simplifiedToolCalls);
|
||||
});
|
||||
const hookResult = await act(async () =>
|
||||
renderTestHook(simplifiedToolCalls),
|
||||
);
|
||||
|
||||
const {
|
||||
mockMarkToolsAsSubmitted,
|
||||
@@ -431,9 +430,8 @@ describe('useGeminiStream', () => {
|
||||
toolCall2ResponseParts,
|
||||
]);
|
||||
expect(localMockSendMessageStream).toHaveBeenCalledWith(
|
||||
expect.anything(),
|
||||
expectedMergedResponse,
|
||||
expect.anything(),
|
||||
expect.any(AbortSignal),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user