test(feishu): expect send receipts · openclaw/openclaw@f7178a7
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -258,7 +258,39 @@ describe("getMessageFeishu", () => {
|
258 | 258 | }), |
259 | 259 | }, |
260 | 260 | }); |
261 | | -expect(result).toEqual({ messageId: "om_mentions", chatId: "oc_send" }); |
| 261 | +expect(typeof result.receipt.sentAt).toBe("number"); |
| 262 | +expect(result).toEqual({ |
| 263 | +messageId: "om_mentions", |
| 264 | +chatId: "oc_send", |
| 265 | +receipt: { |
| 266 | +primaryPlatformMessageId: "om_mentions", |
| 267 | +platformMessageIds: ["om_mentions"], |
| 268 | +parts: [ |
| 269 | +{ |
| 270 | +platformMessageId: "om_mentions", |
| 271 | +kind: "text", |
| 272 | +index: 0, |
| 273 | +raw: { |
| 274 | +channel: "feishu", |
| 275 | +messageId: "om_mentions", |
| 276 | +chatId: "oc_send", |
| 277 | +conversationId: "oc_send", |
| 278 | +}, |
| 279 | +threadId: "oc_send", |
| 280 | +}, |
| 281 | +], |
| 282 | +threadId: "oc_send", |
| 283 | +sentAt: result.receipt.sentAt, |
| 284 | +raw: [ |
| 285 | +{ |
| 286 | +channel: "feishu", |
| 287 | +messageId: "om_mentions", |
| 288 | +chatId: "oc_send", |
| 289 | +conversationId: "oc_send", |
| 290 | +}, |
| 291 | +], |
| 292 | +}, |
| 293 | +}); |
262 | 294 | }); |
263 | 295 | |
264 | 296 | it("extracts text content from interactive card elements", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。