mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 22:52:42 +00:00
test: typing for helpers.meths
This commit is contained in:
@@ -12,7 +12,7 @@ before_each(clear)
|
||||
describe('state() function', function()
|
||||
-- oldtest: Test_state()
|
||||
it('works', function()
|
||||
meths.ui_attach(80, 24, {}) -- Allow hit-enter-prompt
|
||||
meths.nvim_ui_attach(80, 24, {}) -- Allow hit-enter-prompt
|
||||
|
||||
exec_lua([[
|
||||
function _G.Get_state_mode()
|
||||
@@ -48,7 +48,7 @@ describe('state() function', function()
|
||||
|
||||
-- Halfway a mapping
|
||||
feed([[:call v:lua.Run_timer()<CR>;]])
|
||||
meths.get_mode() -- Process pending input and luv timer callback
|
||||
meths.nvim_get_mode() -- Process pending input and luv timer callback
|
||||
feed(';')
|
||||
eq({ 'mS', 'n' }, exec_lua('return _G.res'))
|
||||
|
||||
@@ -79,7 +79,7 @@ describe('state() function', function()
|
||||
|
||||
-- messages scrolled
|
||||
feed([[:call v:lua.Run_timer() | echo "one\ntwo\nthree"<CR>]])
|
||||
meths.get_mode() -- Process pending input and luv timer callback
|
||||
meths.nvim_get_mode() -- Process pending input and luv timer callback
|
||||
feed('<CR>')
|
||||
eq({ 'Ss', 'r' }, exec_lua('return _G.res'))
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user