diff options
author | João Baptista <15786310+M4RC3L05@users.noreply.github.com> | 2024-11-19 21:01:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 21:01:16 +0000 |
commit | c55e936be03a3a023330789f903e2fbd12f4a308 (patch) | |
tree | 0dc406b0cfb82a6c0683edb9152c6450aa3abf52 /tests/specs/fmt/sql/__test__.jsonc | |
parent | 628816448ea45807762fd8eb0c59302c9f2aac9a (diff) |
feat(fmt): support SQL (#26750)
This commit adds support for .sql files in "deno fmt" subcommand.
Closes: https://github.com/denoland/deno/issues/25024
---------
Signed-off-by: m4rc3l05 <15786310+M4RC3L05@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Diffstat (limited to 'tests/specs/fmt/sql/__test__.jsonc')
-rw-r--r-- | tests/specs/fmt/sql/__test__.jsonc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/specs/fmt/sql/__test__.jsonc b/tests/specs/fmt/sql/__test__.jsonc new file mode 100644 index 000000000..a335e79c2 --- /dev/null +++ b/tests/specs/fmt/sql/__test__.jsonc @@ -0,0 +1,25 @@ +{ + "tempDir": true, + "tests": { + "nothing": { + "args": "fmt", + "output": "Checked 7 files\n" + }, + "flag": { + "args": "fmt --unstable-sql", + "output": "[UNORDERED_START]\n[WILDLINE]badly_formatted.sql\n[WILDLINE]well_formatted.sql\n[WILDLINE]wrong_file_ignore.sql\n[UNORDERED_END]\nChecked 7 files\n" + }, + "config_file": { + "steps": [{ + "args": [ + "eval", + "Deno.writeTextFile('deno.json', '{\\n \"unstable\": [\"fmt-sql\"]\\n}\\n')" + ], + "output": "[WILDCARD]" + }, { + "args": "fmt", + "output": "[UNORDERED_START]\n[WILDLINE]badly_formatted.sql\n[WILDLINE]well_formatted.sql\n[WILDLINE]wrong_file_ignore.sql\n[UNORDERED_END]\nChecked 8 files\n" + }] + } + } +} |