mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
test(ui): update gateway session chat mock
This commit is contained in:
@@ -8,6 +8,7 @@ const clearPendingQueueItemsForRunMock = vi.fn();
|
||||
const flushChatQueueForEventMock = vi.fn();
|
||||
const handleChatEventMock = vi.fn(() => "idle");
|
||||
const handleSessionOperationEventMock = vi.fn();
|
||||
const recordFirstAssistantChatTimingMock = vi.fn();
|
||||
|
||||
vi.mock("./app-chat.ts", () => ({
|
||||
CHAT_SESSIONS_ACTIVE_MINUTES: 10,
|
||||
@@ -39,6 +40,7 @@ vi.mock("./app-chat.ts", () => ({
|
||||
},
|
||||
clearPendingQueueItemsForRun: clearPendingQueueItemsForRunMock,
|
||||
flushChatQueueForEvent: flushChatQueueForEventMock,
|
||||
recordFirstAssistantChatTiming: recordFirstAssistantChatTimingMock,
|
||||
refreshChatAvatar: vi.fn(),
|
||||
}));
|
||||
vi.mock("./app-settings.ts", () => ({
|
||||
|
||||
Reference in New Issue
Block a user