mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-19 04:17:31 +02:00
Fix: Don't output default theme info to piped stdout
This commit is contained in:
@@ -305,11 +305,12 @@ fn list_themes_without_colors() {
|
||||
|
||||
#[test]
|
||||
fn list_themes_to_piped_output() {
|
||||
bat()
|
||||
.arg("--list-themes")
|
||||
.assert()
|
||||
.success()
|
||||
.stdout(predicate::str::contains("(default)").not());
|
||||
bat().arg("--list-themes").assert().success().stdout(
|
||||
predicate::str::contains("(default)")
|
||||
.not()
|
||||
.and(predicate::str::contains("(default light)").not())
|
||||
.and(predicate::str::contains("(default dark)").not()),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user