|
|
@ -29,10 +29,7 @@ impl BatTester {
|
|
|
|
|
|
|
|
|
|
|
|
pub fn test_snapshot(&self, style: &str) {
|
|
|
|
pub fn test_snapshot(&self, style: &str) {
|
|
|
|
let output = Command::new(&self.exe)
|
|
|
|
let output = Command::new(&self.exe)
|
|
|
|
.args(&[
|
|
|
|
.args(&["tests/snapshots/sample.rs", &format!("--style={}", style)])
|
|
|
|
"tests/snapshots/sample.rs",
|
|
|
|
|
|
|
|
&format!("--style={}", style),
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
.output()
|
|
|
|
.output()
|
|
|
|
.expect("bat failed");
|
|
|
|
.expect("bat failed");
|
|
|
|
// have to do the replace because the filename in the header changes based on the current working directory
|
|
|
|
// have to do the replace because the filename in the header changes based on the current working directory
|
|
|
|