test: dedupe session hook mock read · openclaw/openclaw@1344617
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -149,7 +149,7 @@ function requireHookCall(
|
149 | 149 | mock: ReturnType<typeof vi.fn>, |
150 | 150 | label: string, |
151 | 151 | ): readonly [Record<string, unknown>, Record<string, unknown> | undefined] { |
152 | | -const call = mock.mock.calls.at(0); |
| 152 | +const call = mock.mock.calls[0]; |
153 | 153 | if (!call) { |
154 | 154 | throw new Error(`expected ${label} hook call`); |
155 | 155 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。