summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-09-19 09:32:21 -0500
committerGitHub <noreply@github.com>2022-09-19 10:32:21 -0400
commit1464b756a4ef091ef97d1bf7340188ab5fe5492a (patch)
tree2eff346ccf5782c501460aec63a5028742066fa6 /runtime/worker.rs
parent8d50c09c0db4e9b0644263cde3f7ff990ec75259 (diff)
refactor: move out test files from root testdata directory into sub directories (#15949)
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 82b6a589e..0723cef84 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -540,7 +540,7 @@ mod tests {
#[tokio::test]
async fn execute_mod_esm_imports_a() {
- let p = test_util::testdata_path().join("esm_imports_a.js");
+ let p = test_util::testdata_path().join("runtime/esm_imports_a.js");
let module_specifier = resolve_url_or_path(&p.to_string_lossy()).unwrap();
let mut worker = create_test_worker();
let result = worker.execute_main_module(&module_specifier).await;
@@ -583,7 +583,7 @@ mod tests {
// This assumes cwd is project root (an assumption made throughout the
// tests).
let mut worker = create_test_worker();
- let p = test_util::testdata_path().join("001_hello.js");
+ let p = test_util::testdata_path().join("run/001_hello.js");
let module_specifier = resolve_url_or_path(&p.to_string_lossy()).unwrap();
let result = worker.execute_main_module(&module_specifier).await;
assert!(result.is_ok());