test: dedupe node media log mock read · openclaw/openclaw@5a10326
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ installBaseProgramMocks();
|
8 | 8 | let registerNodesCli: typeof import("./nodes-cli.js").registerNodesCli; |
9 | 9 | |
10 | 10 | function getFirstRuntimeLogLine(): string { |
11 | | -const first = runtime.log.mock.calls.at(0)?.[0]; |
| 11 | +const first = runtime.log.mock.calls[0]?.[0]; |
12 | 12 | if (typeof first !== "string") { |
13 | 13 | throw new Error(`Expected runtime.log first arg to be string, got ${typeof first}`); |
14 | 14 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。