Skip to content

Commit

Permalink
test: remove format_patterns test that snapshots the stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian8j2 committed Jan 7, 2025
1 parent b049607 commit a977855
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
19 changes: 0 additions & 19 deletions crates/cli_bin/tests/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,6 @@ use insta::assert_yaml_snapshot;

mod common;

#[test]
fn format_patterns() -> Result<()> {
let (_temp_dir, grit_dir) = get_fixture("unformatted_patterns", true)?;

let mut cmd = get_test_cmd()?;
cmd.arg("format").current_dir(grit_dir.clone());
let output = cmd.output()?;

println!("stderr: {}", String::from_utf8(output.stderr.clone())?);
println!("stdout: {}", String::from_utf8(output.stdout.clone())?);

assert!(
output.status.success(),
"Command didn't finish successfully"
);
assert_yaml_snapshot!(String::from_utf8(output.stdout)?);
Ok(())
}

#[test]
fn format_patterns_with_rewrite() -> Result<()> {
let (_temp_dir, grit_dir) = get_fixture("unformatted_patterns", true)?;
Expand Down
6 changes: 0 additions & 6 deletions crates/cli_bin/tests/snapshots/format__format_patterns.snap

This file was deleted.

0 comments on commit a977855

Please sign in to comment.