1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-01-18 20:11:03 +00:00

integration_tests: Add diagnostic_sanity_check()

This commit is contained in:
Martin Nordholts 2021-08-07 12:13:12 +02:00 committed by David Peter
parent 05c11964fc
commit bd797c75a4

View File

@ -700,6 +700,16 @@ fn pager_failed_to_parse() {
.stderr(predicate::str::contains("Could not parse pager command"));
}
#[test]
fn diagnostic_sanity_check() {
bat()
.arg("--diagnostic")
.assert()
.success()
.stdout(predicate::str::contains("BAT_PAGER="))
.stderr("");
}
#[test]
fn config_location_test() {
bat_with_config()