Skip to content

Commit 4afd5bc

Browse files
committed
Ensure test succeeds by adding flag
1 parent 195db9a commit 4afd5bc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/integration_tests.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,7 @@ fn header_full_binary() {
13821382
}
13831383

13841384
#[test]
1385+
#[cfg(not(feature = "git"))]
13851386
fn header_narrow_terminal() {
13861387
bat()
13871388
.arg("--terminal-width=30")
@@ -1391,16 +1392,15 @@ fn header_narrow_terminal() {
13911392
.success()
13921393
.stdout(
13931394
"\
1394-
───────┬──────────────────────
1395-
│ File: this-file-path-
1396-
│ is-really-long-and-wo
1397-
│ uld-have-broken-the-l
1398-
│ ayout-of-the-header.t
1399-
│ xt
1400-
───────┼──────────────────────
1401-
1 │ The header is not bro
1402-
│ ken
1403-
───────┴──────────────────────
1395+
─────┬────────────────────────
1396+
│ File: this-file-path-is
1397+
│ -really-long-and-would-
1398+
│ have-broken-the-layout-
1399+
│ of-the-header.txt
1400+
─────┼────────────────────────
1401+
1 │ The header is not broke
1402+
│ n
1403+
─────┴────────────────────────
14041404
",
14051405
)
14061406
.stderr("");

0 commit comments

Comments
 (0)