aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/angular_spec.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-12 09:54:30 -0600
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit692b051b09935653befdb8f7ba8afdb640adf17b (patch)
tree167162b6b129ae04f68c5735078521a72917c742 /tests/indent/angular_spec.lua
parentfeat(c-family): inherit injections (diff)
downloadnvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'tests/indent/angular_spec.lua')
-rw-r--r--tests/indent/angular_spec.lua38
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/indent/angular_spec.lua b/tests/indent/angular_spec.lua
index 2090420ce..3ead248b7 100644
--- a/tests/indent/angular_spec.lua
+++ b/tests/indent/angular_spec.lua
@@ -1,18 +1,18 @@
-local Runner = require("tests.indent.common").Runner
-local runner = Runner:new(it, "tests/indent/angular", {
+local Runner = require('tests.indent.common').Runner
+local runner = Runner:new(it, 'tests/indent/angular', {
tabstop = 2,
shiftwidth = 2,
expandtab = true,
- filetype = "htmlangular",
+ filetype = 'htmlangular',
})
-describe("indent HTML Angular:", function()
- describe("whole file:", function()
- runner:whole_file "."
+describe('indent HTML Angular:', function()
+ describe('whole file:', function()
+ runner:whole_file('.')
end)
- describe("new line:", function()
- for _, info in ipairs {
+ describe('new line:', function()
+ for _, info in ipairs({
{ 1, 2 },
{ 2, 2 },
{ 3, 2 },
@@ -25,11 +25,11 @@ describe("indent HTML Angular:", function()
{ 12, 6 },
{ 13, 4 },
{ 14, 2 },
- } do
- runner:new_line("if-else.html", { on_line = info[1], text = "//", indent = info[2] })
+ }) do
+ runner:new_line('if-else.html', { on_line = info[1], text = '//', indent = info[2] })
end
- for _, info in ipairs {
+ for _, info in ipairs({
{ 1, 2 },
{ 2, 4 },
{ 3, 6 },
@@ -39,21 +39,21 @@ describe("indent HTML Angular:", function()
{ 9, 6 },
{ 10, 6 },
{ 12, 2 },
- } do
- runner:new_line("switch-case.html", { on_line = info[1], text = "//", indent = info[2] })
+ }) do
+ runner:new_line('switch-case.html', { on_line = info[1], text = '//', indent = info[2] })
end
- for _, info in ipairs {
+ for _, info in ipairs({
{ 1, 2 },
{ 2, 2 },
{ 3, 2 },
{ 4, 2 },
{ 5, 0 },
- } do
- runner:new_line("for.html", { on_line = info[1], text = "//", indent = info[2] })
+ }) do
+ runner:new_line('for.html', { on_line = info[1], text = '//', indent = info[2] })
end
- for _, info in ipairs {
+ for _, info in ipairs({
{ 1, 2 },
{ 2, 2 },
{ 3, 2 },
@@ -63,8 +63,8 @@ describe("indent HTML Angular:", function()
{ 7, 2 },
{ 8, 2 },
{ 9, 0 },
- } do
- runner:new_line("defer.html", { on_line = info[1], text = "//", indent = info[2] })
+ }) do
+ runner:new_line('defer.html', { on_line = info[1], text = '//', indent = info[2] })
end
end)
end)