mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 00:00:22 +00:00
Tests: fix current check failures
This commit is contained in:
@@ -58,11 +58,15 @@ function createHost() {
|
||||
sessionKey: "main",
|
||||
lastActiveSessionKey: "main",
|
||||
theme: "system",
|
||||
themeMode: "system",
|
||||
chatFocusMode: false,
|
||||
chatShowThinking: true,
|
||||
chatShowToolCalls: true,
|
||||
splitRatio: 0.6,
|
||||
navCollapsed: false,
|
||||
navWidth: 280,
|
||||
navGroupsCollapsed: {},
|
||||
borderRadius: 50,
|
||||
},
|
||||
password: "",
|
||||
clientInstanceId: "instance-test",
|
||||
@@ -83,6 +87,9 @@ function createHost() {
|
||||
toolsCatalogLoading: false,
|
||||
toolsCatalogError: null,
|
||||
toolsCatalogResult: null,
|
||||
healthLoading: false,
|
||||
healthResult: null,
|
||||
healthError: null,
|
||||
debugHealth: null,
|
||||
assistantName: "OpenClaw",
|
||||
assistantAvatar: null,
|
||||
@@ -94,7 +101,7 @@ function createHost() {
|
||||
execApprovalQueue: [],
|
||||
execApprovalError: null,
|
||||
updateAvailable: null,
|
||||
} as Parameters<typeof handleGatewayEvent>[0];
|
||||
} as unknown as Parameters<typeof handleGatewayEvent>[0];
|
||||
}
|
||||
|
||||
describe("handleGatewayEvent sessions.changed", () => {
|
||||
@@ -103,6 +110,7 @@ describe("handleGatewayEvent sessions.changed", () => {
|
||||
const host = createHost();
|
||||
|
||||
handleGatewayEvent(host, {
|
||||
type: "event",
|
||||
event: "sessions.changed",
|
||||
payload: { sessionKey: "agent:main:main", reason: "patch" },
|
||||
seq: 1,
|
||||
|
||||
Reference in New Issue
Block a user