From a4a5f5a5fd0b47793eb28cc90601c8bebd363ef9 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Sat, 10 Apr 2021 12:26:54 -0700 Subject: [PATCH] lib: Add test for 'less' as pager instead of 'bat' --- test/suite/lib_pager.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/suite/lib_pager.sh b/test/suite/lib_pager.sh index 62e0816..0ee7d5a 100644 --- a/test/suite/lib_pager.sh +++ b/test/suite/lib_pager.sh @@ -26,6 +26,12 @@ test:less_detection() { (use_pager "stty" && expect_equal "$(pager_name)" "stty") } +test:bat_detection() { + description "Ensure bat is replaced with less as pager" + + (use_pager "bat" && expect_equal "$(pager_name)" "less") +} + test:less_version() { description "Identify less version"