tests: add indent test for graphql (#2459)

Issue #1981
This commit is contained in:
Stephan Seitz 2022-02-05 19:11:14 +01:00 committed by GitHub
parent a14970861c
commit a42137f56a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,6 @@
query Me {
me {
id
fullName
}
}

19
tests/indent/graphql_spec.lua Executable file
View file

@ -0,0 +1,19 @@
local Runner = require("tests.indent.common").Runner
--local XFAIL = require("tests.indent.common").XFAIL
local run = Runner:new(it, "tests/indent/graphql", {
tabstop = 2,
shiftwidth = 2,
softtabstop = 0,
expandtab = true,
})
describe("indent Lua:", function()
describe("whole file:", function()
run:whole_file(".", {
expected_failures = {},
})
end)
describe("new line:", function() end)
end)