mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 15:31:27 +00:00
refactor: maintain 1 GeminiChat per GeminiClient (#710)
This commit is contained in:
parent
447826ab40
commit
74801e9004
7 changed files with 26 additions and 46 deletions
|
|
@ -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),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue