summaryrefslogtreecommitdiff
path: root/cli/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/compiler.rs')
-rw-r--r--cli/compiler.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/compiler.rs b/cli/compiler.rs
index 4233262a3..a33ccfcb0 100644
--- a/cli/compiler.rs
+++ b/cli/compiler.rs
@@ -247,8 +247,8 @@ mod tests {
fn test_compile_sync() {
tokio_util::init(|| {
let specifier = "./tests/002_hello.ts";
- use crate::worker;
- let module_name = worker::root_specifier_to_url(specifier)
+ use crate::module_specifier::ModuleSpecifier;
+ let module_name = ModuleSpecifier::resolve_root(specifier)
.unwrap()
.to_string();
@@ -294,8 +294,8 @@ mod tests {
#[test]
fn test_bundle_async() {
let specifier = "./tests/002_hello.ts";
- use crate::worker;
- let module_name = worker::root_specifier_to_url(specifier)
+ use crate::module_specifier::ModuleSpecifier;
+ let module_name = ModuleSpecifier::resolve_root(specifier)
.unwrap()
.to_string();