mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-01 12:21:25 +00:00
test: fix update-cli default path assertion
This commit is contained in:
@@ -1132,7 +1132,7 @@ describe("update-cli", () => {
|
||||
it("uses ~/openclaw as the default dev checkout directory", async () => {
|
||||
const homedirSpy = vi.spyOn(os, "homedir").mockReturnValue("/tmp/oc-home");
|
||||
await withEnvAsync({ OPENCLAW_GIT_DIR: undefined }, async () => {
|
||||
expect(resolveGitInstallDir()).toBe(path.join("/tmp/oc-home", "openclaw"));
|
||||
expect(resolveGitInstallDir()).toBe(path.posix.join("/tmp/oc-home", "openclaw"));
|
||||
});
|
||||
homedirSpy.mockRestore();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user