diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-06-17 01:23:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 01:23:48 +0200 |
commit | c57f6b28d71df1eb6e967381a44a1c038a75698d (patch) | |
tree | 02a46f56a250d5f59b767ab3af09cf2b72c60d34 /test/functional/api/keymap_spec.lua | |
parent | 279bc71f3c24928de7d46034168fa105592eb1fa (diff) | |
parent | 1f2c2a35ad14cfac002d87073471bd84a52860bf (diff) | |
download | rneovim-c57f6b28d71df1eb6e967381a44a1c038a75698d.tar.gz rneovim-c57f6b28d71df1eb6e967381a44a1c038a75698d.tar.bz2 rneovim-c57f6b28d71df1eb6e967381a44a1c038a75698d.zip |
Merge #8519 feat: name, test ids, sockets in stdpath(state)
Diffstat (limited to 'test/functional/api/keymap_spec.lua')
-rw-r--r-- | test/functional/api/keymap_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/api/keymap_spec.lua b/test/functional/api/keymap_spec.lua index 4bee10a006..6bc6651e04 100644 --- a/test/functional/api/keymap_spec.lua +++ b/test/functional/api/keymap_spec.lua @@ -336,7 +336,7 @@ describe('nvim_get_keymap', function() return GlobalCount ]]) local mapargs = meths.get_keymap('n') - assert.Truthy(type(mapargs[1].callback) == 'number', 'callback is not luaref number') + assert(type(mapargs[1].callback) == 'number', 'callback is not luaref number') mapargs[1].callback = nil eq({ lhs='asdf', @@ -815,7 +815,7 @@ describe('nvim_set_keymap, nvim_del_keymap', function() assert.truthy(string.match(funcs.maparg('asdf', 'n'), "^<Lua function %d+>")) local mapargs = funcs.maparg('asdf', 'n', false, true) - assert.Truthy(type(mapargs.callback) == 'number', 'callback is not luaref number') + assert(type(mapargs.callback) == 'number', 'callback is not luaref number') mapargs.callback = nil eq(generate_mapargs('n', 'asdf', nil, {sid=sid_lua}), mapargs) end) |