Skip to content

Commit

Permalink
Use format! for all the tests in this file
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyja committed Jan 20, 2024
1 parent 004eeff commit 6b05191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/strip_ansi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod integration {
let mut cmd = Command::cargo_bin("devicon-lookup").unwrap();
cmd.write_stdin("test.rs".blue().to_string())
.assert()
.stdout(" \x1b[34mtest.rs\x1B[0m\n");
.stdout(format!(" {}\n", "test.rs".blue()));
}

#[test]
Expand All @@ -19,7 +19,7 @@ mod integration {
cmd.arg("--color");
cmd.write_stdin("test.rs".blue().to_string())
.assert()
.stdout(" \x1b[34mtest.rs\x1B[0m\n");
.stdout(format!(" {}\n", "test.rs".blue()));
}

#[test]
Expand Down

0 comments on commit 6b05191

Please sign in to comment.