fix(indent): ecma - class method indentation

This commit is contained in:
Munif Tanjim 2022-02-26 19:59:48 +06:00 committed by Stephan Seitz
parent 1eaf0150c2
commit 20168d8e20
3 changed files with 34 additions and 1 deletions

View file

@ -36,6 +36,20 @@ describe("indent JavaScript:", function()
run:new_line("ecma/callback.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4])
end
for _, info in
ipairs {
{ 1, 2 },
{ 2, 4 },
{ 3, 6 },
{ 5, 4 },
{ 8, 2 },
{ 11, 4 },
{ 13, 4 },
}
do
run:new_line("ecma/class.js", { on_line = info[1], text = "//", indent = info[2] }, info[3], info[4])
end
for _, info in
ipairs {
{ 2, 2 },