mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 04:47:03 -06:00
test: dedupe outbound matrix mock read
This commit is contained in:
@@ -2014,7 +2014,7 @@ describe("deliverOutboundPayloads", () => {
|
||||
expect(firstChunkCall?.[0]).toBe("!room:example");
|
||||
expect(firstChunkCall?.[1]).toBe("Line one");
|
||||
expect((firstChunkCall?.[2] as { cfg?: unknown } | undefined)?.cfg).toBe(cfg);
|
||||
const secondChunkCall = sendMatrix.mock.calls.at(1);
|
||||
const secondChunkCall = sendMatrix.mock.calls[1];
|
||||
expect(secondChunkCall?.[0]).toBe("!room:example");
|
||||
expect(secondChunkCall?.[1]).toBe("Line two");
|
||||
expect((secondChunkCall?.[2] as { cfg?: unknown } | undefined)?.cfg).toBe(cfg);
|
||||
|
||||
Reference in New Issue
Block a user