mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-03 17:44:06 +00:00
test: fix environment sensitivity in resolveNpmCommandInvocation test
This commit is contained in:
committed by
George Zhang
parent
4399eee6e0
commit
b2c2e9a694
@@ -306,7 +306,7 @@ describe("resolveNpmCommandInvocation", () => {
|
||||
});
|
||||
|
||||
it("uses the platform npm command when npm_execpath is missing", () => {
|
||||
expect(resolveNpmCommandInvocation({ platform: "win32" })).toEqual({
|
||||
expect(resolveNpmCommandInvocation({ npmExecPath: "", platform: "win32" })).toEqual({
|
||||
command: "npm.cmd",
|
||||
args: [],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user