test: dedupe outbound matrix mock read

This commit is contained in:
Peter Steinberger
2026-05-13 08:43:35 +01:00
parent edce338e32
commit 954407ab74
+1 -1
View File
@@ -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);