diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-09-01 17:31:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 18:31:56 +0900 |
commit | 77ead8af20180453aa2d0db67d7856641bd5498f (patch) | |
tree | a171be6d325e071b21f5a4718117f9bed12d7eb9 /cli/tools/test.rs | |
parent | c49eee551fdf78ab0230ec30d4537c98dd5d0c80 (diff) |
fix(cli): retain path based test mode inference (#11878)
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r-- | cli/tools/test.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs index 62621a232..8111293b4 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -757,9 +757,7 @@ async fn fetch_specifiers_with_test_mode( .fetch(specifier, &mut Permissions::allow_all()) .await?; - if file.media_type != MediaType::Unknown { - *mode = TestMode::Both - } else { + if file.media_type == MediaType::Unknown { *mode = TestMode::Documentation } } |