test: fix discord voice route mock type

This commit is contained in:
Shakker
2026-05-09 07:24:15 +01:00
parent f5e19470ce
commit 730b0bea71

View File

@@ -1082,8 +1082,8 @@ describe("DiscordVoiceManager", () => {
});
it("routes bidi realtime consults through a configured voice agent session target", async () => {
resolveAgentRouteMock.mockImplementation((params: { peer?: { id?: string } }) => {
if (params.peer?.id === "maintainers") {
resolveAgentRouteMock.mockImplementation((params?: { peer?: { id?: string } }) => {
if (params?.peer?.id === "maintainers") {
return {
agentId: "main",
sessionKey: "agent:main:discord:channel:maintainers",