summaryrefslogtreecommitdiff
path: root/cli/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/compiler.rs')
-rw-r--r--cli/compiler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/compiler.rs b/cli/compiler.rs
index 872ed28a2..c7adbe390 100644
--- a/cli/compiler.rs
+++ b/cli/compiler.rs
@@ -249,7 +249,7 @@ mod tests {
tokio_util::init(|| {
let specifier = "./tests/002_hello.ts";
use deno::ModuleSpecifier;
- let module_name = ModuleSpecifier::resolve_root(specifier)
+ let module_name = ModuleSpecifier::resolve_url_or_path(specifier)
.unwrap()
.to_string();
@@ -296,7 +296,7 @@ mod tests {
fn test_bundle_async() {
let specifier = "./tests/002_hello.ts";
use deno::ModuleSpecifier;
- let module_name = ModuleSpecifier::resolve_root(specifier)
+ let module_name = ModuleSpecifier::resolve_url_or_path(specifier)
.unwrap()
.to_string();