test: dedupe matrix devices mock read · openclaw/openclaw@2e6d34d
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/matrix/src/matrix/actions
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ const { getMatrixDeviceHealth, listMatrixOwnDevices, pruneMatrixStaleGatewayDevi
|
13 | 13 | |
14 | 14 | function expectResolvedActionClientCall(): void { |
15 | 15 | expect(withResolvedActionClientMock).toHaveBeenCalledTimes(1); |
16 | | -const call = withResolvedActionClientMock.mock.calls.at(0); |
| 16 | +const call = withResolvedActionClientMock.mock.calls[0]; |
17 | 17 | if (!call) { |
18 | 18 | throw new Error("Expected resolved action client call"); |
19 | 19 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。