ci: add test for #3382 (wrong JS array indent)

This commit is contained in:
Stephan Seitz
2022-08-27 10:53:28 +02:00
parent b2f032eb36
commit c30f73aaa4
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
let a = [
]

View File

@@ -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)