diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-16 20:48:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 20:48:50 +0100 |
commit | 636af2850c90f6bf7005a270d95b68bc9718de75 (patch) | |
tree | 9ebffa025237f1ef42226e3168780beac2768b95 /cli/test_runner.rs | |
parent | 8ab20a4582016542ac3d8140593f817ab920005f (diff) |
refactor(cli): rename fs module to fs_util (#8380)
This commit renames "fs" module in "cli/" to "fs_util". This is purely
cosmetic change; there were a few places which aliased "crate::fs"
to "deno_fs" which was very confusing with "fs" module in ops.
Diffstat (limited to 'cli/test_runner.rs')
-rw-r--r-- | cli/test_runner.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/test_runner.rs b/cli/test_runner.rs index 265b514c1..cd8a394c5 100644 --- a/cli/test_runner.rs +++ b/cli/test_runner.rs @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -use crate::fs as deno_fs; +use crate::fs_util; use crate::installer::is_remote_url; use deno_core::error::AnyError; use deno_core::serde_json::json; @@ -42,10 +42,10 @@ pub fn prepare_test_modules_urls( let mut prepared = vec![]; for path in include_paths { - let p = deno_fs::normalize_path(&root_path.join(path)); + let p = fs_util::normalize_path(&root_path.join(path)); if p.is_dir() { let test_files = - crate::fs::collect_files(vec![p], vec![], is_supported).unwrap(); + crate::fs_util::collect_files(vec![p], vec![], is_supported).unwrap(); let test_files_as_urls = test_files .iter() .map(|f| Url::from_file_path(f).unwrap()) |