Skip to content

Commit b6ac552

Browse files
committed
test(completion): explicitly set 'smoothscroll' when test relies on it
1 parent 1448d2c commit b6ac552

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_completion.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,7 @@ end
20192019
T['Scroll']['can be done in signature window'] = function()
20202020
if child.fn.has('nvim-0.10') == 0 then MiniTest.skip("'smoothscroll' requires Neovim>=0.10") end
20212021

2022+
child.o.smoothscroll = true
20222023
child.lua('MiniCompletion.config.window.signature.height = 4')
20232024
child.lua('MiniCompletion.config.window.signature.width = 4')
20242025

@@ -2041,6 +2042,7 @@ T['Scroll']['can be done in signature window'] = function()
20412042
end
20422043

20432044
T['Scroll']['can be done in both windows'] = function()
2045+
child.o.smoothscroll = true
20442046
child.lua('MiniCompletion.config.window.info.height = 4')
20452047
child.lua('MiniCompletion.config.window.signature.height = 4')
20462048
child.lua('MiniCompletion.config.window.signature.width = 4')

0 commit comments

Comments
 (0)