Skip to content

Commit b72b26e

Browse files
committed
👍 Use windows module instead of path.win32
1 parent 5232d56 commit b72b26e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bufname/bufname_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals, assertThrows } from "@std/assert";
2-
import * as path from "@std/path";
2+
import * as pathWin from "@std/path/windows";
33
import { format, parse } from "./bufname.ts";
44

55
Deno.test("format throws exception when 'scheme' contains unusable characters", () => {
@@ -188,7 +188,7 @@ Deno.test("format pass example in README.md", () => {
188188
"denops:///Users/John Titor/test.git;foo=foo&bar=bar1&bar=bar2#README.md",
189189
);
190190

191-
const fileUrl = path.win32.toFileUrl("C:\\Users\\John Titor\\test.git");
191+
const fileUrl = pathWin.toFileUrl("C:\\Users\\John Titor\\test.git");
192192
assertEquals(
193193
fileUrl.pathname,
194194
"/C:/Users/John%20Titor/test.git",
@@ -407,7 +407,7 @@ Deno.test("parse pass example in README.md", () => {
407407
},
408408
);
409409
assertEquals(
410-
path.win32.fromFileUrl(`file://${bufname.expr}`),
410+
pathWin.fromFileUrl(`file://${bufname.expr}`),
411411
"C:\\Users\\John Titor\\test.git",
412412
);
413413
});

0 commit comments

Comments
 (0)