test: tighten discord acp bind route assertion · openclaw/openclaw@f38e65f
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
extensions/discord/src/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -203,9 +203,12 @@ describe("Discord ACP bind here end-to-end flow", () => {
|
203 | 203 | allowFrom: ["*"], |
204 | 204 | }); |
205 | 205 | |
206 | | -expect(preflight).not.toBeNull(); |
207 | | -expect(preflight?.boundSessionKey).toBe(binding.targetSessionKey); |
208 | | -expect(preflight?.route.sessionKey).toBe(binding.targetSessionKey); |
209 | | -expect(preflight?.route.agentId).toBe("codex"); |
| 206 | +expect(preflight).toMatchObject({ |
| 207 | +boundSessionKey: binding.targetSessionKey, |
| 208 | +route: { |
| 209 | +sessionKey: binding.targetSessionKey, |
| 210 | +agentId: "codex", |
| 211 | +}, |
| 212 | +}); |
210 | 213 | }); |
211 | 214 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。