mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
test(gateway): fix typed respond helpers in agent tests
This commit is contained in:
@@ -138,7 +138,7 @@ async function invokeAgent(
|
||||
const respond = options?.respond ?? vi.fn();
|
||||
await agentHandlers.agent({
|
||||
params,
|
||||
respond,
|
||||
respond: respond as never,
|
||||
context: options?.context ?? makeContext(),
|
||||
req: { type: "req", id: options?.reqId ?? "agent-test-req", method: "agent" },
|
||||
client: null,
|
||||
@@ -158,7 +158,7 @@ async function invokeAgentIdentityGet(
|
||||
const respond = options?.respond ?? vi.fn();
|
||||
await agentHandlers["agent.identity.get"]({
|
||||
params,
|
||||
respond,
|
||||
respond: respond as never,
|
||||
context: options?.context ?? makeContext(),
|
||||
req: {
|
||||
type: "req",
|
||||
|
||||
Reference in New Issue
Block a user