mirror of
https://github.com/sharkdp/bat.git
synced 2024-10-31 20:11:01 +01:00
Ensure test succeeds by adding flag
This commit is contained in:
parent
e586751208
commit
1b88267320
@ -1382,6 +1382,7 @@ fn header_full_binary() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(feature = "git"))]
|
||||||
fn header_narrow_terminal() {
|
fn header_narrow_terminal() {
|
||||||
bat()
|
bat()
|
||||||
.arg("--terminal-width=30")
|
.arg("--terminal-width=30")
|
||||||
@ -1391,16 +1392,15 @@ fn header_narrow_terminal() {
|
|||||||
.success()
|
.success()
|
||||||
.stdout(
|
.stdout(
|
||||||
"\
|
"\
|
||||||
───────┬──────────────────────
|
─────┬────────────────────────
|
||||||
│ File: this-file-path-
|
│ File: this-file-path-is
|
||||||
│ is-really-long-and-wo
|
│ -really-long-and-would-
|
||||||
│ uld-have-broken-the-l
|
│ have-broken-the-layout-
|
||||||
│ ayout-of-the-header.t
|
│ of-the-header.txt
|
||||||
│ xt
|
─────┼────────────────────────
|
||||||
───────┼──────────────────────
|
1 │ The header is not broke
|
||||||
1 │ The header is not bro
|
│ n
|
||||||
│ ken
|
─────┴────────────────────────
|
||||||
───────┴──────────────────────
|
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
.stderr("");
|
.stderr("");
|
||||||
|
Loading…
Reference in New Issue
Block a user