nvim-treesitter/tests/indent/yaml_spec.lua

21 lines
590 B
Lua
Raw Normal View History

local Runner = require('tests.indent.common').Runner
2022-06-06 18:23:45 -03:00
--local XFAIL = require("tests.indent.common").XFAIL
local run = Runner:new(it, 'tests/indent/yaml', {
2022-06-06 18:23:45 -03:00
shiftwidth = 2,
expandtab = true,
})
describe('indent YAML:', function()
describe('whole file:', function()
run:whole_file('.', {
2022-06-06 18:23:45 -03:00
expected_failures = {},
})
end)
describe('new line:', function()
run:new_line('indent-sequence-items.yaml', { on_line = 2, text = 'key3: value3', indent = 2 })
run:new_line('autoindent-mapping-pair.yaml', { on_line = 1, text = 'key3: value3', indent = 2 })
2022-06-06 18:23:45 -03:00
end)
end)