diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2020-03-26 14:24:04 -0400 |
---|---|---|
committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-10-05 09:47:59 -0400 |
commit | aad7a74053e16611de04da4151e3e3be50746e3d (patch) | |
tree | 40f07836d98411d15cf01bfd07a67b4c4349a865 /test/functional/plugin | |
parent | e3afb30e69cc310f9f5ab776d33dc7acaf428981 (diff) | |
download | rneovim-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.lua | 5 |
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) |