diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-04-01 00:51:12 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-04-02 18:25:47 +0200 |
| commit | acdec9916318151c18c90b7a690ed60a53f1b219 (patch) | |
| tree | 6347e1ce6b674a24fe11d8c57a32133e4cf5295c /tests/indent/javascript_spec.lua | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-acdec9916318151c18c90b7a690ed60a53f1b219.tar nvim-treesitter-acdec9916318151c18c90b7a690ed60a53f1b219.tar.gz nvim-treesitter-acdec9916318151c18c90b7a690ed60a53f1b219.tar.bz2 nvim-treesitter-acdec9916318151c18c90b7a690ed60a53f1b219.tar.lz nvim-treesitter-acdec9916318151c18c90b7a690ed60a53f1b219.tar.xz nvim-treesitter-acdec9916318151c18c90b7a690ed60a53f1b219.tar.zst nvim-treesitter-acdec9916318151c18c90b7a690ed60a53f1b219.zip | |
chore: update formatting for stylua update
Diffstat (limited to 'tests/indent/javascript_spec.lua')
| -rw-r--r-- | tests/indent/javascript_spec.lua | 150 |
1 files changed, 66 insertions, 84 deletions
diff --git a/tests/indent/javascript_spec.lua b/tests/indent/javascript_spec.lua index ff4dcb800..c832a9083 100644 --- a/tests/indent/javascript_spec.lua +++ b/tests/indent/javascript_spec.lua @@ -17,114 +17,96 @@ describe("indent JavaScript:", function() end) describe("new line:", function() - for _, info in - ipairs { - { 1, 2 }, - { 2, 4 }, - { 3, 4 }, - } - do + for _, info in ipairs { + { 1, 2 }, + { 2, 4 }, + { 3, 4 }, + } do run:new_line("ecma/binary_expression.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4]) end - for _, info in - ipairs { - { 4, 2 }, - { 6, 0 }, - } - do + for _, info in ipairs { + { 4, 2 }, + { 6, 0 }, + } do run:new_line("ecma/callback.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4]) end - for _, info in - ipairs { - { 1, 2 }, - { 2, 4 }, - { 3, 6 }, - { 5, 4 }, - { 8, 2 }, - { 11, 4 }, - { 13, 4 }, - } - do + for _, info in ipairs { + { 1, 2 }, + { 2, 4 }, + { 3, 6 }, + { 5, 4 }, + { 8, 2 }, + { 11, 4 }, + { 13, 4 }, + } do run:new_line("ecma/class.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4]) end - for _, info in - ipairs { - { 2, 2 }, - { 5, 2 }, - { 7, 0 }, - { 12, 4 }, - { 18, 2 }, - { 19, 2 }, - { 20, 2 }, - { 25, 2 }, - { 42, 8 }, - { 43, 10 }, - { 44, 12 }, - { 48, 4 }, - { 49, 4 }, - { 50, 2 }, - } - do + for _, info in ipairs { + { 2, 2 }, + { 5, 2 }, + { 7, 0 }, + { 12, 4 }, + { 18, 2 }, + { 19, 2 }, + { 20, 2 }, + { 25, 2 }, + { 42, 8 }, + { 43, 10 }, + { 44, 12 }, + { 48, 4 }, + { 49, 4 }, + { 50, 2 }, + } do run:new_line("ecma/func.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4]) end - for _, info in - ipairs { - { 1, 2 }, - { 2, 2 }, - { 3, 2 }, - { 5, 4 }, - { 6, 4 }, - { 8, 2 }, - { 9, 2 }, - { 12, 2 }, - { 13, 0 }, - } - do + for _, info in ipairs { + { 1, 2 }, + { 2, 2 }, + { 3, 2 }, + { 5, 4 }, + { 6, 4 }, + { 8, 2 }, + { 9, 2 }, + { 12, 2 }, + { 13, 0 }, + } do run:new_line("ecma/if_else.js", { on_line = info[1], text = "hello()", indent = info[2] }, info[3], info[4]) end - for _, info in - ipairs { - { 2, 2 }, - { 5, 0 }, - } - do + for _, info in ipairs { + { 2, 2 }, + { 5, 0 }, + } do run:new_line("ecma/object.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4]) end - for _, info in - ipairs { - { 3, 6 }, - { 4, 6 }, - } - do + for _, info in ipairs { + { 3, 6 }, + { 4, 6 }, + } do run:new_line("ecma/ternary.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4]) end - for _, info in - ipairs { - { 1, 2 }, - { 2, 2 }, - { 3, 2 }, - { 4, 2 }, - { 5, 2 }, - { 6, 2 }, - { 7, 0 }, - } - do + for _, info in ipairs { + { 1, 2 }, + { 2, 2 }, + { 3, 2 }, + { 4, 2 }, + { 5, 2 }, + { 6, 2 }, + { 7, 0 }, + } do run:new_line("ecma/try_catch.js", { on_line = info[1], text = "hello()", indent = info[2] }, info[3], info[4]) end - for _, info in - ipairs { - { 1, 2 }, - { 2, 0 }, - } - do + for _, info in ipairs { + { 1, 2 }, + { 2, 0 }, + } do run:new_line("ecma/variable.js", { on_line = info[1], text = "hello()", indent = info[2] }, info[3], info[4]) end end) |
