diff options
author | Thomas O'Donnell <andytom@users.noreply.github.com> | 2020-01-18 08:15:08 +0100 |
---|---|---|
committer | Kevin Song <chipbuster@users.noreply.github.com> | 2020-01-18 01:15:08 -0600 |
commit | 197376633a0f28558bb8ad6ceb50ae9c2cd34be0 (patch) | |
tree | 69cdb138fe777c8fa083276ec9fa18c0bf912c0f /tests | |
parent | 8f645ffb8a090cf900883ca50bba423298c4a4f1 (diff) |
fix: Fix incorrect prefix usage in cmd_duration module (#832)
Fixed the way the cmd_duration module is setting it's prefix to be the
same as the other modules.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testsuite/cmd_duration.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testsuite/cmd_duration.rs b/tests/testsuite/cmd_duration.rs index d2a996a61..978a0cf68 100644 --- a/tests/testsuite/cmd_duration.rs +++ b/tests/testsuite/cmd_duration.rs @@ -22,7 +22,7 @@ fn config_blank_duration_5s() -> io::Result<()> { .output()?; let actual = String::from_utf8(output.stdout).unwrap(); - let expected = format!("{} ", Color::Yellow.bold().paint("took 5s")); + let expected = format!("took {} ", Color::Yellow.bold().paint("5s")); assert_eq!(expected, actual); Ok(()) } @@ -54,7 +54,7 @@ fn config_5s_duration_10s() -> io::Result<()> { .output()?; let actual = String::from_utf8(output.stdout).unwrap(); - let expected = format!("{} ", Color::Yellow.bold().paint("took 10s")); + let expected = format!("took {} ", Color::Yellow.bold().paint("10s")); assert_eq!(expected, actual); Ok(()) } @@ -86,7 +86,7 @@ fn config_5s_duration_prefix_underwent() -> io::Result<()> { .output()?; let actual = String::from_utf8(output.stdout).unwrap(); - let expected = format!("{} ", Color::Yellow.bold().paint("underwent 5s")); + let expected = format!("underwent {} ", Color::Yellow.bold().paint("5s")); assert_eq!(expected, actual); Ok(()) } |