mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 12:00:45 +00:00
test: fix discord voice route mock type
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user