Skip to content

Commit

Permalink
Lets only set the override and keep the hard coded spec
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyja committed Jan 27, 2024
1 parent 7343bd9 commit 9523b3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/strip_ansi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ mod integration {
colored::control::set_override(true);

let mut cmd = Command::cargo_bin("devicon-lookup").unwrap();
cmd.write_stdin(format!("{}", "test.rs".blue()))
cmd.write_stdin("test.rs".blue().to_string())
.assert()
.stdout(format!(" {}\n", "test.rs".blue()));
.stdout(" \x1b[34mtest.rs\x1B[0m\n");
}

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

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

0 comments on commit 9523b3b

Please sign in to comment.