test: tighten slack preview reply readback assertion · openclaw/openclaw@62ea06e
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/slack/src/monitor/message-handler
| Original file line number | Diff line number | Diff line change |
|---|
@@ -70,13 +70,14 @@ describe("finalizeSlackPreviewEdit", () => {
|
70 | 70 | |
71 | 71 | expect( |
72 | 72 | client.conversations.replies as unknown as ReturnType<typeof vi.fn>, |
73 | | -).toHaveBeenCalledWith( |
74 | | -expect.objectContaining({ |
75 | | -channel: "C123", |
76 | | -ts: "170000.111", |
77 | | -latest: "171234.567", |
78 | | -}), |
79 | | -); |
| 73 | +).toHaveBeenCalledWith({ |
| 74 | +token: "xoxb-test", |
| 75 | +channel: "C123", |
| 76 | +ts: "170000.111", |
| 77 | +latest: "171234.567", |
| 78 | +inclusive: true, |
| 79 | +limit: 100, |
| 80 | +}); |
80 | 81 | }); |
81 | 82 | |
82 | 83 | it("rethrows when readback does not match the expected final text", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。