mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
parent
5dd9457cf4
commit
a45c19647f
2 changed files with 3 additions and 3 deletions
|
|
@ -180,7 +180,7 @@ fn check_cache(args: &Args) {
|
|||
if args.flag_quiet {
|
||||
return;
|
||||
}
|
||||
println!(
|
||||
eprintln!(
|
||||
"{}",
|
||||
Color::Yellow.paint(format!(
|
||||
"The cache hasn't been updated for more than {} days.\n\
|
||||
|
|
|
|||
|
|
@ -165,14 +165,14 @@ fn test_quiet_old_cache() {
|
|||
.args(&["tldr"])
|
||||
.assert()
|
||||
.success()
|
||||
.stdout(contains("The cache hasn't been updated for more than "));
|
||||
.stderr(contains("The cache hasn't been updated for more than "));
|
||||
|
||||
testenv
|
||||
.command()
|
||||
.args(&["tldr", "--quiet"])
|
||||
.assert()
|
||||
.success()
|
||||
.stdout(contains("The cache hasn't been updated for more than ").not());
|
||||
.stderr(contains("The cache hasn't been updated for more than ").not());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue