From 2312d80bf31e80c54db1887aadfd977cee5ba7de Mon Sep 17 00:00:00 2001 From: A Ghorbani Date: Fri, 1 Nov 2024 10:22:41 +0100 Subject: [PATCH] fix: minor typecehck issue --- src/hooks/__tests__/useChatSession.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hooks/__tests__/useChatSession.test.ts b/src/hooks/__tests__/useChatSession.test.ts index 9882a27..45b6f87 100644 --- a/src/hooks/__tests__/useChatSession.test.ts +++ b/src/hooks/__tests__/useChatSession.test.ts @@ -48,7 +48,13 @@ describe('useChatSession', () => { it('should handle model not loaded scenario', async () => { const {result} = renderHook(() => - useChatSession(null, {current: null}, [], textMessage.author, assistant), + useChatSession( + undefined, + {current: null}, + [], + textMessage.author, + assistant, + ), ); await act(async () => {