test: fix update-cli default path assertion

This commit is contained in:
Peter Steinberger
2026-03-23 22:59:36 +00:00
parent 725a2cc2ca
commit a921b5bdff

View File

@@ -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();
});