summaryrefslogtreecommitdiff
path: root/cli/tools/test.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-09-01 17:31:56 +0800
committerGitHub <noreply@github.com>2021-09-01 18:31:56 +0900
commit77ead8af20180453aa2d0db67d7856641bd5498f (patch)
treea171be6d325e071b21f5a4718117f9bed12d7eb9 /cli/tools/test.rs
parentc49eee551fdf78ab0230ec30d4537c98dd5d0c80 (diff)
fix(cli): retain path based test mode inference (#11878)
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r--cli/tools/test.rs4
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
}
}