mirror of
https://github.com/lsd-rs/lsd
synced 2025-01-18 22:43:59 +00:00
display/tree: 🔍 🔨 fix test to fit new tree display
Signed-off-by: zwPapEr <zw.paper@gmail.com>
This commit is contained in:
parent
154fc1ef69
commit
72548161a8
1 changed files with 4 additions and 3 deletions
|
@ -426,7 +426,7 @@ fn test_tree() {
|
|||
.arg(tmp.path())
|
||||
.arg("--tree")
|
||||
.assert()
|
||||
.stdout(predicate::str::is_match("├── one\n└── one.d\n └── two\n$").unwrap());
|
||||
.stdout(predicate::str::is_match("├── one\n└── one.d\n └── two\n$").unwrap());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -443,7 +443,8 @@ fn test_tree_all_not_show_self() {
|
|||
.arg("--all")
|
||||
.assert()
|
||||
.stdout(
|
||||
predicate::str::is_match("├── one\n└── one.d\n ├── .hidden\n └── two\n$").unwrap(),
|
||||
predicate::str::is_match("├── one\n└── one.d\n ├── .hidden\n └── two\n$")
|
||||
.unwrap(),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -476,7 +477,7 @@ fn test_tree_d() {
|
|||
.arg("--tree")
|
||||
.arg("-d")
|
||||
.assert()
|
||||
.stdout(predicate::str::is_match("├── one.d\n│ └── one.d\n└── two.d\n$").unwrap());
|
||||
.stdout(predicate::str::is_match("├── one.d\n│ └── one.d\n└── two.d\n$").unwrap());
|
||||
}
|
||||
|
||||
fn cmd() -> Command {
|
||||
|
|
Loading…
Reference in a new issue