mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
Update test/functional/plugin/lsp_spec.lua
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
b0b383bff9
commit
5aabe5695f
@@ -3358,16 +3358,16 @@ describe('LSP', function()
|
|||||||
eq({ 40, 3 }, exec_lua [[ return {vim.lsp.util._make_floating_popup_size(contents)} ]])
|
eq({ 40, 3 }, exec_lua [[ return {vim.lsp.util._make_floating_popup_size(contents)} ]])
|
||||||
end)
|
end)
|
||||||
it('handles empty line', function()
|
it('handles empty line', function()
|
||||||
exec_lua(function()
|
exec_lua([[
|
||||||
_G.contents = {
|
_G.contents = {
|
||||||
'',
|
'',
|
||||||
}
|
}
|
||||||
end)
|
]])
|
||||||
eq(
|
eq(
|
||||||
{ 20, 1 },
|
{ 20, 1 },
|
||||||
exec_lua(function()
|
exec_lua([[
|
||||||
return { vim.lsp.util._make_floating_popup_size(_G.contents, { width = 20 }) }
|
return { vim.lsp.util._make_floating_popup_size(_G.contents, { width = 20 }) }
|
||||||
end)
|
]])
|
||||||
)
|
)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user