Skip to content

Commit b32cadd

Browse files
committed
fix: use pending() in windows test
1 parent 91443a2 commit b32cadd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/convert.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ describe("Convert", () => {
5252
it("does not encode Windows drive specifiers", () => {
5353
// This test only succeeds on windows. (Because of the difference in the processing method of drive characters)
5454
// 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")
55+
if (process.platform !== "win32") {
56+
pending("Only test on windows")
5757
}
58+
expect(Convert.pathToUri("d:\\ee\\ff.txt")).toBe("file:///d:/ee/ff.txt")
5859
})
5960

6061
it("URI encodes special characters", () => {

0 commit comments

Comments
 (0)