test: fix discord voice route mock type · openclaw/openclaw@730b0be
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
extensions/discord/src/voice
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1082,8 +1082,8 @@ describe("DiscordVoiceManager", () => {
|
1082 | 1082 | }); |
1083 | 1083 | |
1084 | 1084 | it("routes bidi realtime consults through a configured voice agent session target", async () => { |
1085 | | -resolveAgentRouteMock.mockImplementation((params: { peer?: { id?: string } }) => { |
1086 | | -if (params.peer?.id === "maintainers") { |
| 1085 | +resolveAgentRouteMock.mockImplementation((params?: { peer?: { id?: string } }) => { |
| 1086 | +if (params?.peer?.id === "maintainers") { |
1087 | 1087 | return { |
1088 | 1088 | agentId: "main", |
1089 | 1089 | sessionKey: "agent:main:discord:channel:maintainers", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。