diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-08-11 10:20:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 10:20:47 -0400 |
commit | 15a763152f9d392cb80692262f8de5ef8ae15495 (patch) | |
tree | fcd1a59777f95920bf3502519983d6cc0d882a9a /cli/tools/test_runner.rs | |
parent | a0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff) |
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/tools/test_runner.rs')
-rw-r--r-- | cli/tools/test_runner.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs index 106555f7d..b0cf0c845 100644 --- a/cli/tools/test_runner.rs +++ b/cli/tools/test_runner.rs @@ -708,7 +708,7 @@ mod tests { #[test] fn test_collect_test_module_specifiers() { - let test_data_path = test_util::root_path().join("cli/tests/subdir"); + let sub_dir_path = test_util::testdata_path().join("subdir"); let mut matched_urls = collect_test_module_specifiers( vec![ "https://example.com/colors_test.ts".to_string(), @@ -717,12 +717,11 @@ mod tests { "subdir2/mod2.ts".to_string(), "http://example.com/printf_test.ts".to_string(), ], - &test_data_path, + &sub_dir_path, is_supported, ) .unwrap(); - let test_data_url = - Url::from_file_path(test_data_path).unwrap().to_string(); + let test_data_url = Url::from_file_path(sub_dir_path).unwrap().to_string(); let expected: Vec<Url> = vec![ format!("{}/mod1.ts", test_data_url), |