From f7178a74ef432a052d3a512a0f9ba8880ca09c6e Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 17 Jun 2026 06:50:38 +0200 Subject: [PATCH] test(feishu): expect send receipts --- extensions/feishu/src/send.test.ts | 34 +++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/extensions/feishu/src/send.test.ts b/extensions/feishu/src/send.test.ts index 904fe8eb38a..f5ef931f0d5 100644 --- a/extensions/feishu/src/send.test.ts +++ b/extensions/feishu/src/send.test.ts @@ -258,7 +258,39 @@ describe("getMessageFeishu", () => { }), }, }); - expect(result).toEqual({ messageId: "om_mentions", chatId: "oc_send" }); + expect(typeof result.receipt.sentAt).toBe("number"); + expect(result).toEqual({ + messageId: "om_mentions", + chatId: "oc_send", + receipt: { + primaryPlatformMessageId: "om_mentions", + platformMessageIds: ["om_mentions"], + parts: [ + { + platformMessageId: "om_mentions", + kind: "text", + index: 0, + raw: { + channel: "feishu", + messageId: "om_mentions", + chatId: "oc_send", + conversationId: "oc_send", + }, + threadId: "oc_send", + }, + ], + threadId: "oc_send", + sentAt: result.receipt.sentAt, + raw: [ + { + channel: "feishu", + messageId: "om_mentions", + chatId: "oc_send", + conversationId: "oc_send", + }, + ], + }, + }); }); it("extracts text content from interactive card elements", async () => {