refactor: maintain 1 GeminiChat per GeminiClient (#710)

This commit is contained in:
Brandon Keiji
2025-06-03 02:10:54 +00:00
committed by GitHub
parent 447826ab40
commit 74801e9004
7 changed files with 26 additions and 46 deletions

View File

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