We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d49d81 commit 91443a2Copy full SHA for 91443a2
test/convert.test.ts
@@ -50,8 +50,11 @@ describe("Convert", () => {
50
})
51
52
it("does not encode Windows drive specifiers", () => {
53
- setProcessPlatform("win32")
54
- expect(Convert.pathToUri("d:\\ee\\ff.txt")).toBe("file:///d:/ee/ff.txt")
+ // This test only succeeds on windows. (Because of the difference in the processing method of drive characters)
+ // However, it is enough to test the windows drive character only on windows.
55
+ if (process.platform === "win32") {
56
+ expect(Convert.pathToUri("d:\\ee\\ff.txt")).toBe("file:///d:/ee/ff.txt")
57
+ }
58
59
60
it("URI encodes special characters", () => {
0 commit comments