Skip to content

Commit

Permalink
fix: Fix chat history unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Oct 5, 2024
1 parent d56d2fd commit b5f4890
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/hooks/useChatHistoryInternal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe("useChatHistoryInternal Hook", () => {

// mocks loadChatHistory to resolve successfully
mockLoadChatHistory.mockImplementation(
(settings, styles, chatHistory, setMessages, setTextAreaDisabled) => {
(settings, styles, chatHistory, setMessages, prevTextAreaDisabled, setTextAreaDisabled) => {
setMessages(chatHistory);
setTextAreaDisabled(false);
return Promise.resolve();
Expand Down Expand Up @@ -90,6 +90,7 @@ describe("useChatHistoryInternal Hook", () => {
expect.any(Object),
initialChatHistory,
expect.any(Function),
expect.any(Boolean),
expect.any(Function)
);

Expand Down

0 comments on commit b5f4890

Please sign in to comment.