From 8071ac3b278083c9c12f47a6e30834d81db7f728 Mon Sep 17 00:00:00 2001 From: chengyongru Date: Tue, 11 Aug 2026 18:15:51 +0800 Subject: [PATCH] test(webui): fix sidebar state lint --- webui/src/tests/useSidebarState.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/src/tests/useSidebarState.test.tsx b/webui/src/tests/useSidebarState.test.tsx index dbfaffdff..ffe0233de 100644 --- a/webui/src/tests/useSidebarState.test.tsx +++ b/webui/src/tests/useSidebarState.test.tsx @@ -4,7 +4,7 @@ import { describe, expect, it, vi } from "vitest"; import { useSidebarState } from "@/hooks/useSidebarState"; import type { NanobotClient } from "@/lib/nanobot-client"; -import type { ConnectionStatus, SidebarStatePayload } from "@/lib/types"; +import type { SidebarStatePayload } from "@/lib/types"; import { ClientProvider } from "@/providers/ClientProvider"; describe("useSidebarState", () => { @@ -20,7 +20,7 @@ describe("useSidebarState", () => { .mockImplementation(async (state: SidebarStatePayload) => state); const client = { status: "open" as const, - onStatus: (_handler: (status: ConnectionStatus) => void) => () => {}, + onStatus: () => () => {}, onSidebarStateUpdate: (handler: (state: SidebarStatePayload) => void) => { sidebarStateUpdateHandler = handler; return () => {