mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 22:11:23 +00:00
test: group remaining suite cleanups
This commit is contained in:
@@ -90,19 +90,15 @@ describe("resolveShellFromPath", () => {
|
||||
}
|
||||
});
|
||||
|
||||
if (isWin) {
|
||||
it("returns undefined on Windows for missing PATH entries in this test harness", () => {
|
||||
process.env.PATH = "";
|
||||
expect(resolveShellFromPath("bash")).toBeUndefined();
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
it("returns undefined when PATH is empty", () => {
|
||||
process.env.PATH = "";
|
||||
expect(resolveShellFromPath("bash")).toBeUndefined();
|
||||
});
|
||||
|
||||
if (isWin) {
|
||||
return;
|
||||
}
|
||||
|
||||
it("returns the first executable match from PATH", () => {
|
||||
const notExecutable = createTempCommandDir(tempDirs, [{ name: "bash", executable: false }]);
|
||||
const executable = createTempCommandDir(tempDirs, [{ name: "bash", executable: true }]);
|
||||
|
||||
Reference in New Issue
Block a user