mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
refactor: move out test files from root testdata directory into sub directories (#15949)
This commit is contained in:
parent
8d50c09c0d
commit
1464b756a4
816 changed files with 2430 additions and 2425 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue