test: tighten feishu reply fallback payload assertions · openclaw/openclaw@3e4158d
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -248,16 +248,19 @@ describe("Feishu reply fallback for withdrawn/deleted targets", () => {
|
248 | 248 | |
249 | 249 | expect(replyMock).toHaveBeenCalledWith({ |
250 | 250 | path: { message_id: "om_parent" }, |
251 | | -data: expect.objectContaining({ |
| 251 | +data: { |
| 252 | +content: '{"zh_cn":{"content":[[{"tag":"md","text":"hello"}]]}}', |
| 253 | +msg_type: "post", |
252 | 254 | reply_in_thread: true, |
253 | | -}), |
| 255 | +}, |
254 | 256 | }); |
255 | 257 | expect(createMock).toHaveBeenCalledWith({ |
256 | 258 | params: { receive_id_type: "chat_id" }, |
257 | | -data: expect.objectContaining({ |
| 259 | +data: { |
| 260 | +content: '{"zh_cn":{"content":[[{"tag":"md","text":"hello"}]]}}', |
258 | 261 | receive_id: "oc_group_1", |
259 | 262 | msg_type: "post", |
260 | | -}), |
| 263 | +}, |
261 | 264 | }); |
262 | 265 | }); |
263 | 266 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。