test: tighten imessage coalesce guard assertion · openclaw/openclaw@b584cad
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
extensions/imessage/src/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,9 @@ const makePayload = (overrides: Partial<IMessagePayload> = {}): IMessagePayload
|
21 | 21 | |
22 | 22 | describe("combineIMessagePayloads", () => { |
23 | 23 | it("throws on empty input", () => { |
24 | | -expect(() => combineIMessagePayloads([])).toThrowError(); |
| 24 | +expect(() => combineIMessagePayloads([])).toThrow( |
| 25 | +"combineIMessagePayloads: cannot combine empty payloads", |
| 26 | +); |
25 | 27 | }); |
26 | 28 | |
27 | 29 | it("returns the lone payload unchanged when only one entry", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。