From 1b882673209c769251cc5d289b8cbd7d839f519e Mon Sep 17 00:00:00 2001 From: Filip Razek Date: Sun, 21 Jan 2024 18:54:29 +0100 Subject: [PATCH] Ensure test succeeds by adding flag --- tests/integration_tests.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 10564f3a..437ae8e7 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -1382,6 +1382,7 @@ fn header_full_binary() { } #[test] +#[cfg(not(feature = "git"))] fn header_narrow_terminal() { bat() .arg("--terminal-width=30") @@ -1391,16 +1392,15 @@ fn header_narrow_terminal() { .success() .stdout( "\ -───────┬────────────────────── - │ File: this-file-path- - │ is-really-long-and-wo - │ uld-have-broken-the-l - │ ayout-of-the-header.t - │ xt -───────┼────────────────────── - 1 │ The header is not bro - │ ken -───────┴────────────────────── +─────┬──────────────────────── + │ File: this-file-path-is + │ -really-long-and-would- + │ have-broken-the-layout- + │ of-the-header.txt +─────┼──────────────────────── + 1 │ The header is not broke + │ n +─────┴──────────────────────── ", ) .stderr("");