Fix: Don't output default theme info to piped stdout

This commit is contained in:
einfachIrgendwer0815 committed 2025-01-27 17:11:26 +01:00
1 parent f8c6e90647
commit 4f161705a3
2 files changed
+9 -6

No files matched your search

+6 -5
View File
@@ -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]