Skip to content

Commit

Permalink
test(transformer): transform conformance print code with double-space…
Browse files Browse the repository at this point in the history
… indent (#7707)

Transform conformance tester (`just test-transform`) print code with double-space indent, instead of tabs. This matches our formatting convention for JS files.
  • Loading branch information
overlookmotel committed Dec 8, 2024
1 parent 5913200 commit 37709ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/transform_conformance/src/test_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,10 @@ impl TestCase {
}
} else {
println!("Expected:\n");
let output = output.cow_replace("\t", " ");
println!("{output}\n");
println!("Transformed:\n");
let transformed_code = transformed_code.cow_replace("\t", " ");
println!("{transformed_code}");
println!("Errors:\n");
if let Some(actual_errors) = &actual_errors {
Expand Down

0 comments on commit 37709ce

Please sign in to comment.