aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/api_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-10-08 13:50:29 +0200
committerGitHub <noreply@github.com>2021-10-08 13:50:29 +0200
commit93d33ed02eddd38771bfc1ab0d69e63a9491ace4 (patch)
tree2a4c77b129cd97cf03b61793285ea9d300cb618a /test/functional/lua/api_spec.lua
parent7f93b2ab01c93720820712a3c81462a58d04dfa0 (diff)
parent6064376f6d06067e6e633e1e16312d143e53b500 (diff)
downloadrneovim-93d33ed02eddd38771bfc1ab0d69e63a9491ace4.tar.gz
rneovim-93d33ed02eddd38771bfc1ab0d69e63a9491ace4.tar.bz2
rneovim-93d33ed02eddd38771bfc1ab0d69e63a9491ace4.zip
Merge pull request #15954 from virchau13/fix-table-validation
fix(api): check type in nlua_pop_keydict (fixes #15940)
Diffstat (limited to 'test/functional/lua/api_spec.lua')
-rw-r--r--test/functional/lua/api_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/lua/api_spec.lua b/test/functional/lua/api_spec.lua
index fdf79d55b2..8551c3d2a0 100644
--- a/test/functional/lua/api_spec.lua
+++ b/test/functional/lua/api_spec.lua
@@ -194,6 +194,10 @@ describe('luaeval(vim.api.…)', function()
exc_exec([[call luaeval("vim.api.nvim__id_dictionary(1)")]]))
eq('Vim(call):E5108: Error executing lua [string "luaeval()"]:1: Unexpected type',
exc_exec([[call luaeval("vim.api.nvim__id_dictionary({[vim.type_idx]=vim.types.array})")]]))
+
+ eq('Vim(call):E5108: Error executing lua [string "luaeval()"]:1: Expected lua table',
+ exc_exec([[call luaeval("vim.api.nvim_set_keymap('', '', '', '')")]]))
+
-- TODO: check for errors with Tabpage argument
-- TODO: check for errors with Window argument
-- TODO: check for errors with Buffer argument