test: fix gateway session lint

This commit is contained in:
Shakker
2026-04-24 05:41:39 +01:00
committed by Shakker
parent da6c29b3d9
commit a29233c9af

View File

@@ -389,13 +389,13 @@ async function directSessionReq<TPayload = unknown>(
broadcastToConnIds: vi.fn(),
getSessionEventSubscriberConnIds: () => new Set<string>(),
loadGatewayModelCatalog: async () => piSdkMock.models,
...(opts?.context ?? {}),
...opts?.context,
} as never,
client: opts?.client ?? null,
isWebchatConnect: opts?.isWebchatConnect ?? (() => false),
});
if (!result) {
throw new Error(`${String(method)} did not respond`);
throw new Error(`${method} did not respond`);
}
return result;
}