aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/fold_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:18 +0100
committerJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:29 +0100
commit04f2f864e270e772c6326cefdf24947f0130e492 (patch)
tree46f83f909b888a66c741032ab955afc6eab84292 /test/functional/legacy/fold_spec.lua
parent59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff)
downloadrneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip
refactor: format test/*
Diffstat (limited to 'test/functional/legacy/fold_spec.lua')
-rw-r--r--test/functional/legacy/fold_spec.lua19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/functional/legacy/fold_spec.lua b/test/functional/legacy/fold_spec.lua
index 96fad8520c..c39aae87d2 100644
--- a/test/functional/legacy/fold_spec.lua
+++ b/test/functional/legacy/fold_spec.lua
@@ -15,10 +15,10 @@ describe('folding', function()
screen = Screen.new(45, 8)
screen:set_default_attr_ids({
- [1] = {bold = true, foreground = Screen.colors.Blue}, -- NonText
- [2] = {foreground = Screen.colors.DarkBlue, background = Screen.colors.LightGrey}, -- Folded
- [3] = {foreground = Screen.colors.DarkBlue, background = Screen.colors.Grey}, -- FoldColumn
- [4] = {foreground = Screen.colors.Brown}, -- LineNr
+ [1] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
+ [2] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.LightGrey }, -- Folded
+ [3] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.Grey }, -- FoldColumn
+ [4] = { foreground = Screen.colors.Brown }, -- LineNr
})
screen:attach()
end)
@@ -50,7 +50,7 @@ describe('folding', function()
1 aa]])
end)
- it("foldmethod=marker", function()
+ it('foldmethod=marker', function()
screen:try_resize(20, 10)
insert([[
dd {{{
@@ -78,10 +78,9 @@ describe('folding', function()
1 |*2
|
]])
-
end)
- it("foldmethod=indent", function()
+ it('foldmethod=indent', function()
screen:try_resize(20, 8)
feed_command('set fdm=indent sw=2')
insert([[
@@ -107,7 +106,7 @@ describe('folding', function()
]])
end)
- it("foldmethod=syntax", function()
+ it('foldmethod=syntax', function()
screen:try_resize(35, 15)
insert([[
1 aa
@@ -146,7 +145,7 @@ describe('folding', function()
a jj]])
end)
- it("foldmethod=expression", function()
+ it('foldmethod=expression', function()
insert([[
1 aa
2 bb
@@ -228,7 +227,7 @@ describe('folding', function()
{1:~ }|*5
|
]])
- feed("j")
+ feed('j')
screen:expect([[
{3:+ }{4: 1 }{2:+-- 2 lines: ·························}|
{3:+ }{4: 0 }{2:^+-- 2 lines: ·························}|