File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { assertEquals , assertThrows } from "@std/assert" ;
2
- import * as path from "@std/path" ;
2
+ import * as pathWin from "@std/path/windows " ;
3
3
import { format , parse } from "./bufname.ts" ;
4
4
5
5
Deno . test ( "format throws exception when 'scheme' contains unusable characters" , ( ) => {
@@ -188,7 +188,7 @@ Deno.test("format pass example in README.md", () => {
188
188
"denops:///Users/John Titor/test.git;foo=foo&bar=bar1&bar=bar2#README.md" ,
189
189
) ;
190
190
191
- const fileUrl = path . win32 . toFileUrl ( "C:\\Users\\John Titor\\test.git" ) ;
191
+ const fileUrl = pathWin . toFileUrl ( "C:\\Users\\John Titor\\test.git" ) ;
192
192
assertEquals (
193
193
fileUrl . pathname ,
194
194
"/C:/Users/John%20Titor/test.git" ,
@@ -407,7 +407,7 @@ Deno.test("parse pass example in README.md", () => {
407
407
} ,
408
408
) ;
409
409
assertEquals (
410
- path . win32 . fromFileUrl ( `file://${ bufname . expr } ` ) ,
410
+ pathWin . fromFileUrl ( `file://${ bufname . expr } ` ) ,
411
411
"C:\\Users\\John Titor\\test.git" ,
412
412
) ;
413
413
} ) ;
You can’t perform that action at this time.
0 commit comments