mirror of https://github.com/openclaw/openclaw.git
test(gateway): fix typed respond helpers in agent tests
This commit is contained in:
parent
00c2308085
commit
3a09d85cd3
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue