test: tighten discord thread starter assertions · openclaw/openclaw@a155b15
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 |
|---|
@@ -252,9 +252,8 @@ describe("resolveDiscordThreadStarter", () => {
|
252 | 252 | }); |
253 | 253 | |
254 | 254 | expect(requireThreadStarter(result).text).toBe("starter content"); |
255 | | -expect(get).toHaveBeenCalledWith( |
256 | | -expect.stringContaining("/channels/thread-1/messages/thread-1"), |
257 | | -); |
| 255 | +expect(get).toHaveBeenCalledTimes(1); |
| 256 | +expect(get.mock.calls[0]?.[0]).toBe("/channels/thread-1/messages/thread-1"); |
258 | 257 | }); |
259 | 258 | |
260 | 259 | it("returns null when content, embeds, and snapshots are all empty", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。