From bda4b35f76a628f9212590c39255edce221bcf7b Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 11 Feb 2022 23:46:51 +0100 Subject: indents(ecma): use auto indent on (ERROR) Fixes #2515 --- tests/indent/javascript_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/indent/javascript_spec.lua') diff --git a/tests/indent/javascript_spec.lua b/tests/indent/javascript_spec.lua index c832a9083..855a394f2 100644 --- a/tests/indent/javascript_spec.lua +++ b/tests/indent/javascript_spec.lua @@ -109,5 +109,9 @@ describe("indent JavaScript:", function() } do run:new_line("ecma/variable.js", { on_line = info[1], text = "hello()", indent = info[2] }, info[3], info[4]) end + + for _, line in ipairs { 2, 6 } do + run:new_line("ecma/issue-2515.js", { on_line = line, text = "{}", indent = 4 }) + end end) end) -- cgit v1.2.3-70-g09d2