test: tighten qa inbound assertions · openclaw/openclaw@02ddac4
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/qa-channel/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -114,12 +114,9 @@ describe("handleQaInbound", () => {
|
114 | 114 | ); |
115 | 115 | |
116 | 116 | expect(runtime.channel.turn.runAssembled).toHaveBeenCalledTimes(1); |
117 | | -expect( |
118 | | -vi.mocked(runtime.channel.turn.runAssembled).mock.calls[0]?.[0].ctxPayload, |
119 | | -).toMatchObject({ |
120 | | -CommandAuthorized: true, |
121 | | -SenderId: "alice", |
122 | | -}); |
| 117 | +const ctxPayload = vi.mocked(runtime.channel.turn.runAssembled).mock.calls[0]?.[0].ctxPayload; |
| 118 | +expect(ctxPayload?.CommandAuthorized).toBe(true); |
| 119 | +expect(ctxPayload?.SenderId).toBe("alice"); |
123 | 120 | }); |
124 | 121 | |
125 | 122 | it("uses allowFrom as the group sender fallback for allowlist policy", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。