test: dedupe outbound matrix mock read · openclaw/openclaw@954407a
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2014,7 +2014,7 @@ describe("deliverOutboundPayloads", () => {
|
2014 | 2014 | expect(firstChunkCall?.[0]).toBe("!room:example"); |
2015 | 2015 | expect(firstChunkCall?.[1]).toBe("Line one"); |
2016 | 2016 | expect((firstChunkCall?.[2] as { cfg?: unknown } | undefined)?.cfg).toBe(cfg); |
2017 | | -const secondChunkCall = sendMatrix.mock.calls.at(1); |
| 2017 | +const secondChunkCall = sendMatrix.mock.calls[1]; |
2018 | 2018 | expect(secondChunkCall?.[0]).toBe("!room:example"); |
2019 | 2019 | expect(secondChunkCall?.[1]).toBe("Line two"); |
2020 | 2020 | expect((secondChunkCall?.[2] as { cfg?: unknown } | undefined)?.cfg).toBe(cfg); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。