fix(indents): indents for error block (css, lua) (#3207)

This commit is contained in:
Kiyan 2022-07-21 13:48:03 +02:00 committed by GitHub
parent 223a58bfca
commit d7f06bfb13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 12 deletions

View file

@ -1,5 +1,4 @@
local Runner = require("tests.indent.common").Runner
local XFAIL = require("tests.indent.common").XFAIL
local run = Runner:new(it, "tests/indent/css", {
tabstop = 2,
@ -17,12 +16,7 @@ describe("indent CSS:", function()
describe("new line:", function()
run:new_line("open_block.css", { on_line = 1, text = "}", indent = 0 })
run:new_line(
"open_block.css",
{ on_line = 1, text = "color: green;", indent = 2 },
"might fail because tree is in a broken state",
XFAIL
)
run:new_line("open_block.css", { on_line = 1, text = "color: green;", indent = 2 })
run:new_line("next_rule.css", { on_line = 3, text = ".next {", indent = 0 })
end)
end)