aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/nix_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/nix_spec.lua')
-rw-r--r--tests/indent/nix_spec.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/indent/nix_spec.lua b/tests/indent/nix_spec.lua
index 709a0a109..bad8b53f7 100644
--- a/tests/indent/nix_spec.lua
+++ b/tests/indent/nix_spec.lua
@@ -1,30 +1,30 @@
-local Runner = require("tests.indent.common").Runner
+local Runner = require('tests.indent.common').Runner
-local runner = Runner:new(it, "tests/indent/nix", {
+local runner = Runner:new(it, 'tests/indent/nix', {
tabstop = 2,
shiftwidth = 2,
softtabstop = 2,
expandtab = true,
})
-describe("indent Nix:", function()
- describe("whole file:", function()
- runner:whole_file(".", {
+describe('indent Nix:', function()
+ describe('whole file:', function()
+ runner:whole_file('.', {
expected_failures = {},
})
end)
- describe("new line:", function()
- for _, info in ipairs {
+ describe('new line:', function()
+ for _, info in ipairs({
{ 14, 2 },
{ 16, 2 },
{ 48, 4 },
{ 112, 6 },
- } do
- runner:new_line("general.nix", { on_line = info[1], text = "x = 1;", indent = info[2] })
+ }) do
+ runner:new_line('general.nix', { on_line = info[1], text = 'x = 1;', indent = info[2] })
end
- for _, info in ipairs {
+ for _, info in ipairs({
{ 115, 6 },
{ 113, 10 },
{ 6, 4 },
@@ -33,8 +33,8 @@ describe("indent Nix:", function()
{ 35, 6 },
{ 23, 2 },
{ 21, 6 },
- } do
- runner:new_line("conds.nix", { on_line = info[1], text = "x = 1;", indent = info[2] })
+ }) do
+ runner:new_line('conds.nix', { on_line = info[1], text = 'x = 1;', indent = info[2] })
end
end)
end)