mirror of
https://github.com/denoland/deno.git
synced 2024-12-03 17:08:35 -05:00
3242550f5f
`deno fmt --check` was broken for CSS, YAML and HTML files. Before this PR, formatting any of these file types would return a string, even though the contract in `cli/tools/fmt.rs` is to only return a string if the formatting changed. This causes wrong flagging of these files as being badly formatted even though diffs showed nothing (because they were in fact formatted properly). Closes https://github.com/denoland/deno/issues/25840
13 lines
295 B
Text
13 lines
295 B
Text
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"badly_formatted": {
|
|
"args": "fmt badly_formatted.html",
|
|
"output": "[WILDLINE]badly_formatted.html\nChecked 1 file\n"
|
|
},
|
|
"well_formatted": {
|
|
"args": "fmt --check well_formatted.html",
|
|
"output": "Checked 1 file\n"
|
|
}
|
|
}
|
|
}
|