add(test): command backup after done doesn't include ---

This commit is contained in:
qwjyh 2024-12-01 23:31:58 +09:00
parent d743e607ac
commit 315a75424a

View file

@ -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(())
}
}