diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-19 09:32:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 10:32:21 -0400 |
commit | 1464b756a4ef091ef97d1bf7340188ab5fe5492a (patch) | |
tree | 2eff346ccf5782c501460aec63a5028742066fa6 /cli/fs_util.rs | |
parent | 8d50c09c0db4e9b0644263cde3f7ff990ec75259 (diff) |
refactor: move out test files from root testdata directory into sub directories (#15949)
Diffstat (limited to 'cli/fs_util.rs')
-rw-r--r-- | cli/fs_util.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cli/fs_util.rs b/cli/fs_util.rs index 69d4f7248..f3a4addc0 100644 --- a/cli/fs_util.rs +++ b/cli/fs_util.rs @@ -542,8 +542,8 @@ mod tests { assert!(!is_supported_ext(Path::new("tests/subdir/redirects"))); assert!(!is_supported_ext(Path::new("README.md"))); assert!(is_supported_ext(Path::new("lib/typescript.d.ts"))); - assert!(is_supported_ext(Path::new("testdata/001_hello.js"))); - assert!(is_supported_ext(Path::new("testdata/002_hello.ts"))); + assert!(is_supported_ext(Path::new("testdata/run/001_hello.js"))); + assert!(is_supported_ext(Path::new("testdata/run/002_hello.ts"))); assert!(is_supported_ext(Path::new("foo.jsx"))); assert!(is_supported_ext(Path::new("foo.tsx"))); assert!(is_supported_ext(Path::new("foo.TS"))); @@ -563,8 +563,12 @@ mod tests { assert!(is_supported_test_ext(Path::new("README.md"))); assert!(is_supported_test_ext(Path::new("readme.MD"))); assert!(is_supported_test_ext(Path::new("lib/typescript.d.ts"))); - assert!(is_supported_test_ext(Path::new("testdata/001_hello.js"))); - assert!(is_supported_test_ext(Path::new("testdata/002_hello.ts"))); + assert!(is_supported_test_ext(Path::new( + "testdata/run/001_hello.js" + ))); + assert!(is_supported_test_ext(Path::new( + "testdata/run/002_hello.ts" + ))); assert!(is_supported_test_ext(Path::new("foo.jsx"))); assert!(is_supported_test_ext(Path::new("foo.tsx"))); assert!(is_supported_test_ext(Path::new("foo.TS"))); |