mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
ci: add test for #3382 (wrong JS array indent)
This commit is contained in:
parent
b2f032eb36
commit
c30f73aaa4
2 changed files with 6 additions and 0 deletions
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue