aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-03-26 14:24:04 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2020-10-05 09:47:59 -0400
commitaad7a74053e16611de04da4151e3e3be50746e3d (patch)
tree40f07836d98411d15cf01bfd07a67b4c4349a865 /test/functional/plugin
parente3afb30e69cc310f9f5ab776d33dc7acaf428981 (diff)
downloadrneovim-aad7a74053e16611de04da4151e3e3be50746e3d.tar.gz
rneovim-aad7a74053e16611de04da4151e3e3be50746e3d.tar.bz2
rneovim-aad7a74053e16611de04da4151e3e3be50746e3d.zip
vim.validate(): include stacktrace in message
Diffstat (limited to 'test/functional/plugin')
-rw-r--r--test/functional/plugin/lsp_spec.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index f514f4ea6f..3c4c448e7a 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -6,6 +6,7 @@ local buf_lines = helpers.buf_lines
local dedent = helpers.dedent
local exec_lua = helpers.exec_lua
local eq = helpers.eq
+local contains = helpers.contains
local pcall_err = helpers.pcall_err
local pesc = helpers.pesc
local insert = helpers.insert
@@ -747,8 +748,8 @@ describe('LSP', function()
end)
it('should invalid cmd argument', function()
- eq('Error executing lua: .../shared.lua: cmd: expected list, got nvim', pcall_err(_cmd_parts, "nvim"))
- eq('Error executing lua: .../shared.lua: cmd argument: expected string, got number', pcall_err(_cmd_parts, {"nvim", 1}))
+ contains('cmd: expected list, got nvim', pcall_err(_cmd_parts, "nvim"))
+ contains('cmd argument: expected string, got number', pcall_err(_cmd_parts, {"nvim", 1}))
end)
end)
end)