test: reprise optional install retry · openclaw/openclaw@c9d2877
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2367,24 +2367,18 @@ describe("update-cli", () => {
|
2367 | 2367 | const installArgvs = commandCalls() |
2368 | 2368 | .map(([argv]) => argv) |
2369 | 2369 | .filter((argv) => argv[0] === "npm" && argv[1] === "i" && argv[2] === "-g"); |
2370 | | -expect(installArgvs).toContainEqual([ |
2371 | | -"npm", |
2372 | | -"i", |
2373 | | -"-g", |
2374 | | -"openclaw@latest", |
2375 | | -"--no-fund", |
2376 | | -"--no-audit", |
2377 | | -"--loglevel=error", |
2378 | | -]); |
2379 | | -expect(installArgvs).toContainEqual([ |
2380 | | -"npm", |
2381 | | -"i", |
2382 | | -"-g", |
2383 | | -"openclaw@latest", |
2384 | | -"--omit=optional", |
2385 | | -"--no-fund", |
2386 | | -"--no-audit", |
2387 | | -"--loglevel=error", |
| 2370 | +expect(installArgvs).toEqual([ |
| 2371 | +["npm", "i", "-g", "openclaw@latest", "--no-fund", "--no-audit", "--loglevel=error"], |
| 2372 | +[ |
| 2373 | +"npm", |
| 2374 | +"i", |
| 2375 | +"-g", |
| 2376 | +"openclaw@latest", |
| 2377 | +"--omit=optional", |
| 2378 | +"--no-fund", |
| 2379 | +"--no-audit", |
| 2380 | +"--loglevel=error", |
| 2381 | +], |
2388 | 2382 | ]); |
2389 | 2383 | expect(defaultRuntime.exit).not.toHaveBeenCalledWith(1); |
2390 | 2384 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。