test(gateway): fix typed respond helpers in agent tests

This commit is contained in:
Peter Steinberger
2026-02-18 12:49:15 +00:00
parent 00c2308085
commit 3a09d85cd3

View File

@@ -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",