

























@@ -83,7 +83,16 @@ describe("whatsapp react action messageId resolution", () => {
8383accountId: "default",
8484});
8585expect(hoisted.handleWhatsAppAction).toHaveBeenCalledWith(
86-expect.objectContaining({ messageId: "explicit-id" }),
86+{
87+action: "react",
88+chatJid: "+1555",
89+messageId: "explicit-id",
90+emoji: "👍",
91+remove: undefined,
92+participant: undefined,
93+accountId: "default",
94+fromMe: undefined,
95+},
8796baseCfg,
8897);
8998});
@@ -101,7 +110,16 @@ describe("whatsapp react action messageId resolution", () => {
101110},
102111});
103112expect(hoisted.handleWhatsAppAction).toHaveBeenCalledWith(
104-expect.objectContaining({ messageId: "ctx-msg-42" }),
113+{
114+action: "react",
115+chatJid: "+1555",
116+messageId: "ctx-msg-42",
117+emoji: "❤️",
118+remove: undefined,
119+participant: undefined,
120+accountId: "default",
121+fromMe: undefined,
122+},
105123baseCfg,
106124);
107125});
@@ -119,7 +137,16 @@ describe("whatsapp react action messageId resolution", () => {
119137},
120138});
121139expect(hoisted.handleWhatsAppAction).toHaveBeenCalledWith(
122-expect.objectContaining({ messageId: "12345" }),
140+{
141+action: "react",
142+chatJid: "+1555",
143+messageId: "12345",
144+emoji: "🎉",
145+remove: undefined,
146+participant: undefined,
147+accountId: "default",
148+fromMe: undefined,
149+},
123150baseCfg,
124151);
125152});
@@ -165,10 +192,16 @@ describe("whatsapp react action messageId resolution", () => {
165192},
166193});
167194expect(hoisted.handleWhatsAppAction).toHaveBeenCalledWith(
168-expect.objectContaining({
195+{
196+action: "react",
197+chatJid: "12345@g.us",
169198messageId: "ctx-msg-42",
199+emoji: "👍",
200+remove: undefined,
170201participant: "123@lid",
171-}),
202+accountId: "default",
203+fromMe: undefined,
204+},
172205baseCfg,
173206);
174207});
@@ -187,10 +220,16 @@ describe("whatsapp react action messageId resolution", () => {
187220},
188221});
189222expect(hoisted.handleWhatsAppAction).toHaveBeenCalledWith(
190-expect.objectContaining({
223+{
224+action: "react",
225+chatJid: "+1555",
191226messageId: "ctx-msg-42",
227+emoji: "👍",
228+remove: undefined,
192229participant: undefined,
193-}),
230+accountId: "default",
231+fromMe: undefined,
232+},
194233baseCfg,
195234);
196235});
@@ -213,10 +252,16 @@ describe("whatsapp react action messageId resolution", () => {
213252},
214253});
215254expect(hoisted.handleWhatsAppAction).toHaveBeenCalledWith(
216-expect.objectContaining({
255+{
256+action: "react",
257+chatJid: "12345@g.us",
217258messageId: "ctx-msg-42",
259+emoji: "👍",
260+remove: undefined,
218261participant: "555@s.whatsapp.net",
219-}),
262+accountId: "default",
263+fromMe: undefined,
264+},
220265baseCfg,
221266);
222267});
@@ -253,10 +298,16 @@ describe("whatsapp react action messageId resolution", () => {
253298},
254299});
255300expect(hoisted.handleWhatsAppAction).toHaveBeenCalledWith(
256-expect.objectContaining({
301+{
302+action: "react",
303+chatJid: "12345@g.us",
257304messageId: "older-msg-7",
305+emoji: "👍",
306+remove: undefined,
258307participant: undefined,
259-}),
308+accountId: "default",
309+fromMe: undefined,
310+},
260311baseCfg,
261312);
262313});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。