test: deliver command error output · openclaw/openclaw@4754b58
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -137,7 +137,8 @@ function expectRuntimeErrorIncludes(
|
137 | 137 | runtime: { error: { mock: { calls: Array<Array<unknown>> } } }, |
138 | 138 | text: string, |
139 | 139 | ) { |
140 | | -expect(runtime.error.mock.calls.some(([message]) => String(message).includes(text))).toBe(true); |
| 140 | +const errorOutput = runtime.error.mock.calls.map(([message]) => String(message)).join("\n"); |
| 141 | +expect(errorOutput).toContain(text); |
141 | 142 | } |
142 | 143 | |
143 | 144 | function latestJsonOutput(runtime: { writeJson: { mock: { calls: Array<Array<unknown>> } } }) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。