From 19c422fb44f28ad4292f105d73a86fdb93bc6a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Blondon?= Date: Sun, 21 Apr 2024 20:54:04 +0200 Subject: [PATCH] test: code coverage for list-languages parameter --- CHANGELOG.md | 1 + tests/integration_tests.rs | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28e56e34..8a0262d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 0285ac26..6a370c0b 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -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() {