test: code coverage for list-languages parameter

This commit is contained in:
Stéphane Blondon 2024-04-21 20:54:04 +02:00
parent bb4d1cbd2e
commit 19c422fb44
2 changed files with 10 additions and 0 deletions

View File

@ -47,6 +47,7 @@
- Added auto detect syntax for `.jsonc` #2795 (@mxaddict) - Added auto detect syntax for `.jsonc` #2795 (@mxaddict)
- Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict) - Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict)
- Add syntax mapping for Wireguard config #2874 (@cyqsimon) - Add syntax mapping for Wireguard config #2874 (@cyqsimon)
- Improve code coverage of `--list-languages` parameter #2942 (@sblondon)
## Themes ## Themes

View File

@ -307,6 +307,15 @@ fn list_themes_without_colors() {
.stdout(predicate::str::contains(default_theme_chunk).normalize()); .stdout(predicate::str::contains(default_theme_chunk).normalize());
} }
#[test]
fn list_languages() {
bat()
.arg("--list-languages")
.assert()
.success()
.stdout(predicate::str::contains("Rust").normalize());
}
#[test] #[test]
#[cfg_attr(any(not(feature = "git"), target_os = "windows"), ignore)] #[cfg_attr(any(not(feature = "git"), target_os = "windows"), ignore)]
fn short_help() { fn short_help() {