Skip to content

Commit 01c6e33

Browse files
committed
Fix misleading test case
1 parent 6b5d439 commit 01c6e33

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

crates/air/tests/integration/format.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,6 @@ fn test_stdin_uses_default_air_toml_settings() -> anyhow::Result<()> {
264264
let test_contents = "1+\n1";
265265
std::fs::write(directory.join(test_path), test_contents)?;
266266

267-
let air_path = "air.toml";
268-
let air_contents = r#"
269-
[format]
270-
indent-width = 4
271-
"#;
272-
std::fs::write(directory.join(air_path), air_contents)?;
273-
274267
// Running in `directory` with a relative path to `test_path`. No `air.toml` found in
275268
// `directory` or its ancestors, so we use default settings.
276269
insta::assert_snapshot!(

crates/air/tests/integration/snapshots/integration__format__stdin_uses_default_air_toml_settings.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ success: true
66
exit_code: 0
77
----- stdout -----
88
1 +
9-
1
9+
1
1010

1111
----- stderr -----
1212

0 commit comments

Comments
 (0)