test: tighten imessage synthesized reply assertion · openclaw/openclaw@d9a4973
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -636,11 +636,18 @@ describe("imessage message actions", () => {
|
636 | 636 | }, |
637 | 637 | } as never); |
638 | 638 | |
639 | | -expect(runtimeMock.sendRichMessage).toHaveBeenCalledWith( |
640 | | -expect.objectContaining({ |
641 | | -chatGuid: "iMessage;-;+18001234567", |
642 | | -}), |
643 | | -); |
| 639 | +expect(runtimeMock.sendRichMessage.mock.calls).toStrictEqual([ |
| 640 | +[ |
| 641 | +{ |
| 642 | +chatGuid: "iMessage;-;+18001234567", |
| 643 | +text: "first contact", |
| 644 | +replyToMessageId: "parent-guid", |
| 645 | +partIndex: undefined, |
| 646 | +attachment: undefined, |
| 647 | +options: imsgOptions("iMessage;-;+18001234567"), |
| 648 | +}, |
| 649 | +], |
| 650 | +]); |
644 | 651 | }); |
645 | 652 | |
646 | 653 | it("removes a tapback by fanning out across all known kinds when emoji is empty/unknown and remove:true", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。