test: tighten command capture helper assertions · openclaw/openclaw@3a09899
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -47,7 +47,6 @@ describe("requireValidConfigSnapshot", () => {
|
47 | 47 | |
48 | 48 | function requireFirstLog(runtime: ReturnType<typeof createRuntime>): string { |
49 | 49 | const [message] = runtime.log.mock.calls[0] ?? []; |
50 | | -expect(message).toBeDefined(); |
51 | 50 | if (message === undefined) { |
52 | 51 | throw new Error("expected runtime log message"); |
53 | 52 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -84,7 +84,6 @@ async function runGatewayPrompt(params: {
|
84 | 84 | |
85 | 85 | const result = await promptGatewayConfig(params.baseConfig ?? {}, makeRuntime()); |
86 | 86 | const [call] = mocks.buildGatewayAuthConfig.mock.calls[0] ?? []; |
87 | | -expect(call).toBeDefined(); |
88 | 87 | if (!call) { |
89 | 88 | throw new Error("expected gateway auth config input"); |
90 | 89 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -58,7 +58,6 @@ vi.mock("../gateway/call.js", () => ({
|
58 | 58 | |
59 | 59 | function requireFirstRuntimeLog(): string { |
60 | 60 | const [message] = runtime.log.mock.calls[0] ?? []; |
61 | | -expect(message).toBeDefined(); |
62 | 61 | if (message === undefined) { |
63 | 62 | throw new Error("expected health command log output"); |
64 | 63 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。