diff options
| author | Brandon Keiji <[email protected]> | 2025-06-03 02:10:54 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-02 19:10:54 -0700 |
| commit | 74801e900413c2ca48a2977680e715cd28aa76d9 (patch) | |
| tree | 54a054711f11d9dd5dc9d72aed2759b8d6e13b88 /packages/cli/src/ui/hooks/useGeminiStream.test.tsx | |
| parent | 447826ab40354c01667328a651f6a0f239825c64 (diff) | |
refactor: maintain 1 GeminiChat per GeminiClient (#710)
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.test.tsx')
| -rw-r--r-- | packages/cli/src/ui/hooks/useGeminiStream.test.tsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.test.tsx b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx index 3a421ebf..d46fab9e 100644 --- a/packages/cli/src/ui/hooks/useGeminiStream.test.tsx +++ b/packages/cli/src/ui/hooks/useGeminiStream.test.tsx @@ -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), ); }); }); |
