summaryrefslogtreecommitdiff
path: root/core/module_specifier.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/module_specifier.rs')
-rw-r--r--core/module_specifier.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/module_specifier.rs b/core/module_specifier.rs
index ad24616ff..dd5347a33 100644
--- a/core/module_specifier.rs
+++ b/core/module_specifier.rs
@@ -402,7 +402,7 @@ mod tests {
);
tests.extend(vec![
(r"/deno/tests/006_url_imports.ts", expected_url.to_string()),
- (r"\deno\tests\006_url_imports.ts", expected_url.to_string()),
+ (r"\deno\tests\006_url_imports.ts", expected_url),
]);
// Relative local path.
@@ -413,8 +413,8 @@ mod tests {
tests.extend(vec![
(r"tests/006_url_imports.ts", expected_url.to_string()),
(r"tests\006_url_imports.ts", expected_url.to_string()),
- (r"./tests/006_url_imports.ts", expected_url.to_string()),
- (r".\tests\006_url_imports.ts", expected_url.to_string()),
+ (r"./tests/006_url_imports.ts", (*expected_url).to_string()),
+ (r".\tests\006_url_imports.ts", (*expected_url).to_string()),
]);
// UNC network path.
@@ -437,7 +437,7 @@ mod tests {
let expected_url = format!("file://{}/tests/006_url_imports.ts", cwd_str);
tests.extend(vec![
("tests/006_url_imports.ts", expected_url.to_string()),
- ("./tests/006_url_imports.ts", expected_url.to_string()),
+ ("./tests/006_url_imports.ts", expected_url),
]);
}