Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Jun 23, 2019
1 parent d52d870 commit 4e2008e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cli/deno_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,12 @@ mod tests {
file_url!("/Users/rld/src/deno/hello.js"),
add_root!("/Users/rld/src/deno/hello.js"),
),
(
r"c:\Users\rld\src\deno\hello.js",
".",
file_url!("/Users/rld/src/deno/hello.js"),
add_root!("/Users/rld/src/deno/hello.js"),
),
(
add_root!("/this/module/got/imported.js"),
add_root!("/that/module/did/it.js"),
Expand Down
8 changes: 7 additions & 1 deletion core/module_specifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ mod tests {
ModuleSpecifier::resolve_root(r"C:/deno/tests/006_url_imports.ts")
.unwrap()
.to_string(),
"file:///c:/deno/tests/006_url_imports.ts",
"file:///C:/deno/tests/006_url_imports.ts",
);
assert_eq!(
ModuleSpecifier::resolve_root(r"C:\deno\tests\006_url_imports.ts")
.unwrap()
.to_string(),
"file:///C:/deno/tests/006_url_imports.ts",
);
} else {
assert_eq!(
Expand Down

0 comments on commit 4e2008e

Please sign in to comment.