diff --git a/tests/cli.rs b/tests/cli.rs index 5f767d6..7e34861 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -46,11 +46,14 @@ mod cli { let mut file = tempfile::NamedTempFile::new()?; file.write(b"abc123def")?; - #[rustfmt::skip] - sd().args(&["-p", "abc\\d+", "", file.path().to_str().unwrap()]) - .assert() - .success() - .stdout("def"); + sd().args(&["-p", "abc\\d+", "", file.path().to_str().unwrap()]) + .assert() + .success() + .stdout(format!( + "{}{}def", + ansi_term::Color::Green.prefix().to_string(), + ansi_term::Color::Green.suffix().to_string() + )); assert_file(file.path(), "abc123def");