fix: test file error

This commit is contained in:
Jin 2026-03-10 01:13:10 +00:00 committed by JYC333
parent e2892e2eaa
commit ff203b9188

View File

@ -46,7 +46,7 @@ vi.mock("../../services/note_autocomplete", () => ({
}));
vi.mock("../react/react_utils", () => ({
refToJQuerySelector: (ref: { current: HTMLInputElement | null }) => $(ref.current)
refToJQuerySelector: (ref: { current: HTMLInputElement | null }) => ref.current ? $(ref.current) : $()
}));
vi.mock("../react/hooks", () => ({