mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 09:40:45 +00:00
test: tighten imessage coalesce guard assertion
This commit is contained in:
@@ -21,7 +21,9 @@ const makePayload = (overrides: Partial<IMessagePayload> = {}): IMessagePayload
|
||||
|
||||
describe("combineIMessagePayloads", () => {
|
||||
it("throws on empty input", () => {
|
||||
expect(() => combineIMessagePayloads([])).toThrowError();
|
||||
expect(() => combineIMessagePayloads([])).toThrow(
|
||||
"combineIMessagePayloads: cannot combine empty payloads",
|
||||
);
|
||||
});
|
||||
|
||||
it("returns the lone payload unchanged when only one entry", () => {
|
||||
|
||||
Reference in New Issue
Block a user