From 5aabe5695f485c43aedb11e6b1a52b5feb8b23cb Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 14 Jan 2025 04:20:40 -0800 Subject: [PATCH] Update test/functional/plugin/lsp_spec.lua --- test/functional/plugin/lsp_spec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index a3f0022347..c0637d2e62 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -3358,16 +3358,16 @@ describe('LSP', function() eq({ 40, 3 }, exec_lua [[ return {vim.lsp.util._make_floating_popup_size(contents)} ]]) end) it('handles empty line', function() - exec_lua(function() + exec_lua([[ _G.contents = { '', } - end) + ]]) eq( { 20, 1 }, - exec_lua(function() + exec_lua([[ return { vim.lsp.util._make_floating_popup_size(_G.contents, { width = 20 }) } - end) + ]]) ) end) end)