diff options
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), ); }); }); |
