diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/indent/ecma/array-issue3382.js | 2 | ||||
| -rw-r--r-- | tests/indent/javascript_spec.lua | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/indent/ecma/array-issue3382.js b/tests/indent/ecma/array-issue3382.js new file mode 100644 index 000000000..3ae39ef03 --- /dev/null +++ b/tests/indent/ecma/array-issue3382.js @@ -0,0 +1,2 @@ +let a = [ +] diff --git a/tests/indent/javascript_spec.lua b/tests/indent/javascript_spec.lua index 50bedc4a3..827539eeb 100644 --- a/tests/indent/javascript_spec.lua +++ b/tests/indent/javascript_spec.lua @@ -115,5 +115,9 @@ describe("indent JavaScript:", function() for _, line in ipairs { 2, 6 } do run:new_line("ecma/issue-2515.js", { on_line = line, text = "{}", indent = 4 }) end + + for _, info in ipairs { { line = 2, indent = 0 } } do + run:new_line("ecma/array-issue3382.js", { on_line = info.line, text = "foo();", indent = info.indent }) + end end) end) |
