mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-25 09:13:39 +01:00
test: code coverage for list-languages parameter
This commit is contained in:
parent
bb4d1cbd2e
commit
19c422fb44
@ -47,6 +47,7 @@
|
||||
- Added auto detect syntax for `.jsonc` #2795 (@mxaddict)
|
||||
- Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict)
|
||||
- Add syntax mapping for Wireguard config #2874 (@cyqsimon)
|
||||
- Improve code coverage of `--list-languages` parameter #2942 (@sblondon)
|
||||
|
||||
## Themes
|
||||
|
||||
|
@ -307,6 +307,15 @@ fn list_themes_without_colors() {
|
||||
.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]
|
||||
#[cfg_attr(any(not(feature = "git"), target_os = "windows"), ignore)]
|
||||
fn short_help() {
|
||||
|
Loading…
Reference in New Issue
Block a user