test: tighten status reaction removal assertion · openclaw/openclaw@4a959dc
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -373,8 +373,13 @@ describe("createStatusReactionController", () => {
|
373 | 373 | await controller.setDone(); |
374 | 374 | |
375 | 375 | const removeEmojis = collectEmojisForMethod(calls, "remove"); |
376 | | -expect(removeEmojis).toEqual(expect.arrayContaining(["👀", DEFAULT_EMOJIS.thinking, "🛠️"])); |
377 | | -expect(removeEmojis).not.toContain(DEFAULT_EMOJIS.done); |
| 376 | +expect(removeEmojis).toEqual([ |
| 377 | +"👀", |
| 378 | +DEFAULT_EMOJIS.stallSoft, |
| 379 | +DEFAULT_EMOJIS.stallHard, |
| 380 | +DEFAULT_EMOJIS.thinking, |
| 381 | +"🛠️", |
| 382 | +]); |
378 | 383 | }); |
379 | 384 | |
380 | 385 | it("should not remove reactions on terminal state when adapter lacks removeReaction", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。