Skip to content

Commit d071c0e

Browse files
committed
refactor(tests): add minimal test for folding
1 parent 8cdfc8d commit d071c0e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/plenary/org/fold_spec.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
local helpers = require('tests.plenary.helpers')
2+
3+
describe('folding', function()
4+
it('works', function()
5+
helpers.create_file({
6+
'* First',
7+
'** Second',
8+
'*** Third',
9+
'**** Fourth',
10+
'***** Fifth',
11+
'text',
12+
})
13+
vim.cmd.normal({ 'GzM', bang = true })
14+
local foldlevel = vim.fn.foldlevel(6)
15+
assert.are.same(5, foldlevel)
16+
end)
17+
end)

0 commit comments

Comments
 (0)