mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
ci: add test for #3382 (wrong JS array indent)
This commit is contained in:
2
tests/indent/ecma/array-issue3382.js
Normal file
2
tests/indent/ecma/array-issue3382.js
Normal file
@@ -0,0 +1,2 @@
|
||||
let a = [
|
||||
]
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user