Update test/functional/plugin/lsp_spec.lua

This commit is contained in:
Justin M. Keyes
2025-01-14 04:20:40 -08:00
committed by github-actions[bot]
parent b0b383bff9
commit 5aabe5695f

View File

@@ -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)