aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-12 11:51:31 +0000
committerLewis Russell <lewis6991@gmail.com>2024-01-12 12:04:20 +0000
commit56a2ec5c79d49421758319f1a8822cf30f1f8a5e (patch)
treef52e685be7cd043312b2cff10f809b931d2b96bf /test/functional/helpers.lua
parent7a259d01aed52134a1675e47d9054ccad7ef7cbb (diff)
downloadrneovim-56a2ec5c79d49421758319f1a8822cf30f1f8a5e.tar.gz
rneovim-56a2ec5c79d49421758319f1a8822cf30f1f8a5e.tar.bz2
rneovim-56a2ec5c79d49421758319f1a8822cf30f1f8a5e.zip
test: use vim.inspect directly
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 763b3c8663..a31d2d5b44 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -730,17 +730,16 @@ function module.expect_any(contents)
end
function module.expect_events(expected, received, kind)
- local inspect = require 'vim.inspect'
if not pcall(eq, expected, received) then
local msg = 'unexpected ' .. kind .. ' received.\n\n'
msg = msg .. 'received events:\n'
for _, e in ipairs(received) do
- msg = msg .. ' ' .. inspect(e) .. ';\n'
+ msg = msg .. ' ' .. vim.inspect(e) .. ';\n'
end
msg = msg .. '\nexpected events:\n'
for _, e in ipairs(expected) do
- msg = msg .. ' ' .. inspect(e) .. ';\n'
+ msg = msg .. ' ' .. vim.inspect(e) .. ';\n'
end
fail(msg)
end