diff options
Diffstat (limited to 'test/functional/autocmd/safestate_spec.lua')
-rw-r--r-- | test/functional/autocmd/safestate_spec.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/functional/autocmd/safestate_spec.lua b/test/functional/autocmd/safestate_spec.lua index 73693749e4..b5b7ab2f95 100644 --- a/test/functional/autocmd/safestate_spec.lua +++ b/test/functional/autocmd/safestate_spec.lua @@ -3,7 +3,7 @@ local clear = helpers.clear local eq = helpers.eq local exec = helpers.exec local feed = helpers.feed -local meths = helpers.meths +local api = helpers.api before_each(clear) @@ -18,40 +18,40 @@ describe('SafeState autocommand', function() it('with pending operator', function() feed('d') create_autocmd() - eq(0, meths.get_var('safe')) + eq(0, api.nvim_get_var('safe')) feed('d') - eq(1, meths.get_var('safe')) + eq(1, api.nvim_get_var('safe')) end) it('with specified register', function() feed('"r') create_autocmd() - eq(0, meths.get_var('safe')) + eq(0, api.nvim_get_var('safe')) feed('x') - eq(1, meths.get_var('safe')) + eq(1, api.nvim_get_var('safe')) end) it('with i_CTRL-O', function() feed('i<C-O>') create_autocmd() - eq(0, meths.get_var('safe')) + eq(0, api.nvim_get_var('safe')) feed('x') - eq(1, meths.get_var('safe')) + eq(1, api.nvim_get_var('safe')) end) it('with Insert mode completion', function() feed('i<C-X><C-V>') create_autocmd() - eq(0, meths.get_var('safe')) + eq(0, api.nvim_get_var('safe')) feed('<C-X><C-Z>') - eq(1, meths.get_var('safe')) + eq(1, api.nvim_get_var('safe')) end) it('with Cmdline completion', function() feed(':<Tab>') create_autocmd() - eq(0, meths.get_var('safe')) + eq(0, api.nvim_get_var('safe')) feed('<C-E>') - eq(1, meths.get_var('safe')) + eq(1, api.nvim_get_var('safe')) end) end) |