Skip to content

Commit

Permalink
fix: Fix test case for text area internal hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin authored Dec 17, 2024
1 parent 45fa219 commit 2fb225e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/hooks/internal/useTextAreaInternal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe("useTextAreaInternal Hook", () => {
let mocksettingsPreventDefault: any;
beforeEach(() => {

mockInputRef = { current: { value: "", focus: jest.fn() } };
mockInputRef = { current: { value: "", focus: jest.fn(), blur: jest.fn() } };
mockPrevInputRef = { current: "" };
mocksettingsRefT = { chatInput: { allowNewline: true } };
mocksettingsRefF = { chatInput: { allowNewline: false } };
Expand Down Expand Up @@ -237,4 +237,4 @@ describe("useTextAreaInternal Hook", () => {
// Assume focus happens correctly, verify it updated focus (mocks internal behavior)
expect(callRcbEventMock).not.toHaveBeenCalledWith(RcbEvent.TEXT_AREA_CHANGE_VALUE);
});
});
});

0 comments on commit 2fb225e

Please sign in to comment.