Skip to content

Commit b1a6d96

Browse files
committed
(mini.jump2d tests) Reenable fold screenshot tests.
1 parent 81de16f commit b1a6d96

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

tests/test_jump2d.lua

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,7 @@ T['start()']['uses `spotter` with correct arguments'] = function()
496496
{ 1, { win_id = win_other, win_id_init = win_init } },
497497
-- Lines 2 and 3 are folded, shouldn't be called
498498
})
499-
500-
-- TODO: remove condition after Neovim issue is resolved
501-
-- Don't check on Neovim nightly because there is a crucial change
502-
-- Source: https://github.com/neovim/neovim/issues/23831
503-
if child.fn.has('nvim-0.10') == 0 then child.expect_screenshot() end
499+
child.expect_screenshot()
504500

505501
-- Should call `spotter` only on jumpt start, not on every step
506502
child.lua('_G.args_history = {}')
@@ -631,16 +627,14 @@ T['start()']['respects folds'] = function()
631627

632628
-- Validate
633629
start()
634-
-- TODO: remove condition after Neovim issue is resolved
635-
if child.fn.has('nvim-0.10') == 0 then child.expect_screenshot() end
630+
child.expect_screenshot()
636631

637632
-- Folds should still be present
638633
eq({ child.fn.foldclosed(2), child.fn.foldclosed(3) }, { 2, 2 })
639634

640635
-- After jump should open enough folds to show cursor
641636
type_keys('c')
642-
-- TODO: remove condition after Neovim issue is resolved
643-
if child.fn.has('nvim-0.10') == 0 then child.expect_screenshot() end
637+
child.expect_screenshot()
644638
eq(get_cursor(), { 2, 0 })
645639
eq({ child.fn.foldclosed(2), child.fn.foldclosed(3) }, { -1, -1 })
646640
end
@@ -660,8 +654,7 @@ T['start()']['respects `allowed_lines.fold`'] = function()
660654
child.lua('MiniJump2d.stop()')
661655
child.b.minijump2d_config = { allowed_lines = { fold = true } }
662656
start()
663-
-- TODO: remove condition after Neovim issue is resolved
664-
if child.fn.has('nvim-0.10') == 0 then child.expect_screenshot() end
657+
child.expect_screenshot()
665658
end
666659

667660
T['start()']['respects `allowed_windows`'] = new_set({

0 commit comments

Comments
 (0)