mirror of
https://github.com/qwjyh/xdbm
synced 2024-12-05 04:51:04 +09:00
add(test): command backup after done doesn't include ---
This commit is contained in:
parent
d743e607ac
commit
315a75424a
1 changed files with 15 additions and 0 deletions
15
tests/cli.rs
15
tests/cli.rs
|
@ -448,6 +448,21 @@ mod integrated_test {
|
|||
.assert()
|
||||
.success();
|
||||
|
||||
// backup list after backup done
|
||||
Command::cargo_bin("xdbm")?
|
||||
.arg("-c")
|
||||
.arg(config_dir_2.path())
|
||||
.arg("backup")
|
||||
.arg("list")
|
||||
.assert()
|
||||
.success()
|
||||
.stdout(
|
||||
predicate::str::contains("foodoc")
|
||||
.and(predicate::str::contains("nas"))
|
||||
.and(predicate::str::contains("gdrive_docs"))
|
||||
.and(predicate::str::contains("---").not()),
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue