test: dedupe cron enqueue mock read · openclaw/openclaw@1ae9d82
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,7 +31,7 @@ function createCronFromStorePath(storePath: string) {
|
31 | 31 | function requireEnqueueSystemEventCall( |
32 | 32 | enqueueSystemEvent: ReturnType<typeof vi.fn>, |
33 | 33 | ): [string, { agentId?: string } | undefined] { |
34 | | -const call = enqueueSystemEvent.mock.calls.at(0); |
| 34 | +const call = enqueueSystemEvent.mock.calls[0]; |
35 | 35 | if (!call) { |
36 | 36 | throw new Error("Expected enqueueSystemEvent call"); |
37 | 37 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。