From 692b051b09935653befdb8f7ba8afdb640adf17b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 12 Jun 2023 09:54:30 -0600 Subject: feat!: drop modules, general refactor and cleanup --- tests/indent/query_spec.lua | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'tests/indent/query_spec.lua') diff --git a/tests/indent/query_spec.lua b/tests/indent/query_spec.lua index ca2ccdef5..f884009a0 100644 --- a/tests/indent/query_spec.lua +++ b/tests/indent/query_spec.lua @@ -1,28 +1,28 @@ -local Runner = require("tests.indent.common").Runner +local Runner = require('tests.indent.common').Runner -local run = Runner:new(it, "tests/indent/query", { +local run = Runner:new(it, 'tests/indent/query', { tabstop = 2, shiftwidth = 2, softtabstop = 2, expandtab = true, - lispoptions = "expr:1", + lispoptions = 'expr:1', }) -describe("indent Query:", function() - describe("whole file:", function() - run:whole_file(".", {}) +describe('indent Query:', function() + describe('whole file:', function() + run:whole_file('.', {}) end) - describe("new line:", function() - run:new_line("test.scm", { on_line = 3, text = "(node)", indent = 2 }) - run:new_line("test.scm", { on_line = 5, text = "(node)", indent = 2 }) - run:new_line("test.scm", { on_line = 12, text = "(node)", indent = 2 }) - run:new_line("test.scm", { on_line = 25, text = "(#my-directive!)", indent = 10 }) - run:new_line("test.scm", { on_line = 34, text = '"more"', indent = 2 }) - run:new_line("test.scm", { on_line = 35, text = "(node)", indent = 0 }) - run:new_line("test.scm", { on_line = 40, text = "(node)", indent = 0 }) - run:new_line("test.scm", { on_line = 44, text = "(node)", indent = 2 }) - run:new_line("test.scm", { on_line = 46, text = "(node)", indent = 2 }) - run:new_line("test.scm", { on_line = 48, text = "(node)", indent = 2 }) - run:new_line("test.scm", { on_line = 50, text = "node_name", indent = 2 }) + describe('new line:', function() + run:new_line('test.scm', { on_line = 3, text = '(node)', indent = 2 }) + run:new_line('test.scm', { on_line = 5, text = '(node)', indent = 2 }) + run:new_line('test.scm', { on_line = 12, text = '(node)', indent = 2 }) + run:new_line('test.scm', { on_line = 25, text = '(#my-directive!)', indent = 10 }) + run:new_line('test.scm', { on_line = 34, text = '"more"', indent = 2 }) + run:new_line('test.scm', { on_line = 35, text = '(node)', indent = 0 }) + run:new_line('test.scm', { on_line = 40, text = '(node)', indent = 0 }) + run:new_line('test.scm', { on_line = 44, text = '(node)', indent = 2 }) + run:new_line('test.scm', { on_line = 46, text = '(node)', indent = 2 }) + run:new_line('test.scm', { on_line = 48, text = '(node)', indent = 2 }) + run:new_line('test.scm', { on_line = 50, text = 'node_name', indent = 2 }) end) end) -- cgit v1.2.3-70-g09d2