mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: use path.resolve for Windows compatibility in get-relative-path test
This commit is contained in:
parent
f0f84f8086
commit
00ecdf99bd
1 changed files with 2 additions and 1 deletions
|
|
@ -57,7 +57,8 @@ describe("get-relative-path", () => {
|
|||
})
|
||||
|
||||
it("should use custom workspace root when provided", () => {
|
||||
const customWorkspace = path.normalize("/custom/workspace")
|
||||
// Use path.resolve to ensure we get a proper absolute path for the platform
|
||||
const customWorkspace = path.resolve("/custom/workspace")
|
||||
const result = generateNormalizedAbsolutePath("src/file.ts", customWorkspace)
|
||||
const expected = path.join(customWorkspace, "src/file.ts")
|
||||
expect(result).toBe(expected)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue