test: clarify proxy tui cli accepted paths · openclaw/openclaw@ea27993
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,7 +32,7 @@ describe("buildProgram version alias handling", () => {
|
32 | 32 | throw new Error(`unexpected process.exit:${String(code)}`); |
33 | 33 | }) as typeof process.exit); |
34 | 34 | |
35 | | -expect(() => buildProgram()).not.toThrow(); |
| 35 | +buildProgram(); |
36 | 36 | expect(exitSpy).not.toHaveBeenCalled(); |
37 | 37 | }); |
38 | 38 | }); |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -54,7 +54,7 @@ describe("DebugProxyCaptureStore", () => {
|
54 | 54 | const store = makeStore(); |
55 | 55 | |
56 | 56 | store.close(); |
57 | | -expect(() => store.close()).not.toThrow(); |
| 57 | +store.close(); |
58 | 58 | expect(store.isClosed).toBe(true); |
59 | 59 | }); |
60 | 60 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -394,8 +394,6 @@ describe("resolveCodexCliBin", () => {
|
394 | 394 | }); |
395 | 395 | |
396 | 396 | it("returns null or a valid path (never throws)", () => { |
397 | | -// The function should never throw regardless of environment |
398 | | -expect(() => resolveCodexCliBin()).not.toThrow(); |
399 | 397 | const result = resolveCodexCliBin(); |
400 | 398 | expect(result === null || typeof result === "string").toBe(true); |
401 | 399 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。