test(installer): track portable node root helper · openclaw/openclaw@9364b21
vincentkoc
·
2026-05-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -117,6 +117,7 @@ describe("install.ps1 failure handling", () => {
|
117 | 117 | it("falls back to a user-local portable Node.js bootstrap when package managers are absent", () => { |
118 | 118 | const installNodeBody = extractFunctionBody(source, "Install-Node"); |
119 | 119 | const portableNodeBody = extractFunctionBody(source, "Install-PortableNode"); |
| 120 | +const portableNodeRootBody = extractFunctionBody(source, "Get-PortableNodeRoot"); |
120 | 121 | const portableNodePathBody = extractFunctionBody(source, "Ensure-PortableNodeOnUserPath"); |
121 | 122 | const userPathBody = extractFunctionBody(source, "Add-ToUserPath"); |
122 | 123 | const depsRootBody = extractFunctionBody(source, "Get-OpenClawDepsRoot"); |
@@ -127,7 +128,7 @@ describe("install.ps1 failure handling", () => {
|
127 | 128 | expect(installNodeBody).toContain("Portable Node.js bootstrap failed"); |
128 | 129 | expect(installNodeBody).toContain("Error: Could not install Node.js automatically."); |
129 | 130 | expect(depsRootBody).toContain("OpenClaw\\deps"); |
130 | | -expect(portableNodeBody).toContain("portable-node"); |
| 131 | +expect(portableNodeRootBody).toContain("portable-node"); |
131 | 132 | expect(portableNodeBody).toContain("Ensure-PortableNodeOnUserPath"); |
132 | 133 | expect(portableNodeBody).toContain( |
133 | 134 | "Expand-PortableNodeArchive -ZipPath $tmpZip -DestinationPath $portableRoot", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。