test: tighten slack thread recovery assertion · openclaw/openclaw@3ea2761
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,7 +42,16 @@ describe("Slack missing thread_ts recovery", () => {
|
42 | 42 | const message = await runMissingThreadScenario({ |
43 | 43 | historyResponse: { messages: [{ ts: "456", thread_ts: "111.222" }] }, |
44 | 44 | }); |
45 | | -expect(message).toMatchObject({ thread_ts: "111.222" }); |
| 45 | +expect(message).toEqual({ |
| 46 | +type: "message", |
| 47 | +user: "U1", |
| 48 | +text: "hello", |
| 49 | +ts: "456", |
| 50 | +parent_user_id: "U2", |
| 51 | +channel: "C1", |
| 52 | +channel_type: "channel", |
| 53 | +thread_ts: "111.222", |
| 54 | +}); |
46 | 55 | }); |
47 | 56 | |
48 | 57 | it("continues without thread_ts when history lookup returns no thread result", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。