test: tighten discord message process assertions · openclaw/openclaw@30f3887
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/discord/src/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1836,9 +1836,8 @@ describe("processDiscordMessage draft streaming", () => {
|
1836 | 1836 | expect(draftStream.update).toHaveBeenCalledWith( |
1837 | 1837 | "Clawing...\n🛠️ Exec\n• _Checking files and tests_", |
1838 | 1838 | ); |
1839 | | -expect(draftStream.update).not.toHaveBeenCalledWith( |
1840 | | -expect.stringContaining("_Checking files_Reasoning:"), |
1841 | | -); |
| 1839 | +const updates = draftStream.update.mock.calls.map((call) => call[0]); |
| 1840 | +expect(updates.some((update) => update.includes("_Checking files_Reasoning:"))).toBe(false); |
1842 | 1841 | }); |
1843 | 1842 | |
1844 | 1843 | it("keeps Discord progress lines across assistant boundaries", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。