mirror of
https://github.com/sharkdp/bat
synced 2024-11-23 12:23:19 +00:00
integration_tests: Add diagnostic_sanity_check()
This commit is contained in:
parent
05c11964fc
commit
bd797c75a4
1 changed files with 10 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue