diff options
author | einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com> | 2023-08-07 19:23:52 +0200 |
---|---|---|
committer | Martin Nordholts <enselic@gmail.com> | 2023-09-01 17:59:41 +0200 |
commit | 4b04f901fe645caa1f83073993dd92a585a606d8 (patch) | |
tree | 2cdf6b729e34126c8a9ad350800da9eab964cddc /tests | |
parent | 26111950b368f9ce5552284b5d923bc62568bc9b (diff) |
Add test for `BAT_PAGING`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 61948280..d494d280 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -844,6 +844,17 @@ fn pager_failed_to_parse() { } #[test] +fn env_var_bat_paging() { + bat() + .env("BAT_PAGER", "echo pager-output") + .env("BAT_PAGING", "always") + .arg("test.txt") + .assert() + .success() + .stdout(predicate::eq("pager-output\n")); +} + +#[test] fn diagnostic_sanity_check() { bat() .arg("--diagnostic") |