summaryrefslogtreecommitdiff
path: root/tests/specs/fmt/css
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/fmt/css')
-rw-r--r--tests/specs/fmt/css/__test__.jsonc12
-rw-r--r--tests/specs/fmt/css/well_formatted.css3
2 files changed, 13 insertions, 2 deletions
diff --git a/tests/specs/fmt/css/__test__.jsonc b/tests/specs/fmt/css/__test__.jsonc
index e58818fbe..a3ded6d43 100644
--- a/tests/specs/fmt/css/__test__.jsonc
+++ b/tests/specs/fmt/css/__test__.jsonc
@@ -1,5 +1,13 @@
{
"tempDir": true,
- "args": "fmt",
- "output": "[WILDLINE]badly_formatted.css\nChecked 1 file\n"
+ "tests": {
+ "badly_formatted": {
+ "args": "fmt badly_formatted.css",
+ "output": "[WILDLINE]badly_formatted.css\nChecked 1 file\n"
+ },
+ "well_formatted": {
+ "args": "fmt --check well_formatted.css",
+ "output": "Checked 1 file\n"
+ }
+ }
}
diff --git a/tests/specs/fmt/css/well_formatted.css b/tests/specs/fmt/css/well_formatted.css
new file mode 100644
index 000000000..1653551f4
--- /dev/null
+++ b/tests/specs/fmt/css/well_formatted.css
@@ -0,0 +1,3 @@
+#app > .btn {
+ color: #000;
+}