mirror of https://github.com/openclaw/openclaw.git
test: fix update-cli default path assertion
This commit is contained in:
parent
725a2cc2ca
commit
a921b5bdff
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue