summaryrefslogtreecommitdiff
path: root/std/path/from_file_url_test.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-05-04 19:32:54 +0100
committerGitHub <noreply@github.com>2020-05-04 14:32:54 -0400
commit8c509bd88517ebc92673d9da91e71a08868e830e (patch)
tree5c880d6bafb1b5f22d69b3f1cfc52bbd4ea63056 /std/path/from_file_url_test.ts
parent6c02b061ce157b9fc3d20f9bcace0bc6638290d3 (diff)
feat(URL): Support drive letters for file URLs on Windows (#5074)
refactor: Parse URLs more sequentially. This makes it easier to change matching behaviour depending on the protocol. fix: Fail when a host isn't given for certain protocols. fix: Convert back-slashes info forward-slashes.
Diffstat (limited to 'std/path/from_file_url_test.ts')
-rw-r--r--std/path/from_file_url_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/path/from_file_url_test.ts b/std/path/from_file_url_test.ts
index 79389b91b..b3f2bb6c6 100644
--- a/std/path/from_file_url_test.ts
+++ b/std/path/from_file_url_test.ts
@@ -26,7 +26,7 @@ Deno.test("[path] fromFileUrl (win32)", function () {
// assertEquals(path.win32.fromFileUrl("file:////server"), "\\");
// assertEquals(path.win32.fromFileUrl("file:////server/file"), "\\file");
assertEquals(path.win32.fromFileUrl("file:///c"), "\\c");
- assertEquals(path.win32.fromFileUrl("file:///c:"), "\\c:");
+ assertEquals(path.win32.fromFileUrl("file:///c:"), "c:\\");
assertEquals(path.win32.fromFileUrl("file:///c:/"), "c:\\");
assertEquals(path.win32.fromFileUrl("file:///C:/"), "C:\\");
assertEquals(path.win32.fromFileUrl("file:///C:/Users/"), "C:\\Users\\");