mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
add ql indent tests
This commit is contained in:
parent
1c41d6f825
commit
9d6d348418
3 changed files with 36 additions and 0 deletions
20
tests/indent/ql_spec.lua
Normal file
20
tests/indent/ql_spec.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
local Runner = require("tests.indent.common").Runner
|
||||
|
||||
local run = Runner:new(it, "tests/indent/ql", {
|
||||
tabstop = 2,
|
||||
shiftwidth = 2,
|
||||
softtabstop = 0,
|
||||
expandtab = true,
|
||||
})
|
||||
|
||||
describe("indent Lua:", function()
|
||||
describe("whole file:", function()
|
||||
run:whole_file(".", {
|
||||
expected_failures = {},
|
||||
})
|
||||
end)
|
||||
end)
|
||||
|
||||
describe("new line:", function()
|
||||
run:new_line("module.ql", { on_line = 6, text = "predicate test() {}", indent = 2 })
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue