Skip to content

Commit

Permalink
display/tree: 🔍 🔨 fix test to fit new tree display
Browse files Browse the repository at this point in the history
Signed-off-by: zwPapEr <zw.paper@gmail.com>
  • Loading branch information
zwpaper committed Mar 25, 2021
1 parent 65b9e1d commit f26f193
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration.rs
Expand Up @@ -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]
Expand All @@ -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(),
);
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f26f193

Please sign in to comment.