diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 11:28:20 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 12:04:18 +0000 |
commit | d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9 (patch) | |
tree | 847c5c36b440434ec046b3d454581f121cc8d6c5 /test/functional/ui | |
parent | 2f9ee9b6cfc61a0504fc0bc22bdf481828e2ea91 (diff) | |
download | rneovim-d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9.tar.gz rneovim-d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9.tar.bz2 rneovim-d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9.zip |
test: do not inject vim module into global helpers
Diffstat (limited to 'test/functional/ui')
-rw-r--r-- | test/functional/ui/float_spec.lua | 5 | ||||
-rw-r--r-- | test/functional/ui/multibyte_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/ui/screen.lua | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 5a78e2baa9..6febb2e2df 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -1,6 +1,5 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') -local global_helpers = require('test.helpers') local os = require('os') local clear, feed = helpers.clear, helpers.feed local assert_alive = helpers.assert_alive @@ -17,9 +16,9 @@ local curbufmeths = helpers.curbufmeths local funcs = helpers.funcs local run = helpers.run local pcall_err = helpers.pcall_err -local tbl_contains = global_helpers.tbl_contains +local tbl_contains = vim.tbl_contains local curbuf, curwin, curtab = helpers.curbuf, helpers.curwin, helpers.curtab -local NIL = helpers.NIL +local NIL = vim.NIL describe('float window', function() before_each(function() diff --git a/test/functional/ui/multibyte_spec.lua b/test/functional/ui/multibyte_spec.lua index 8077194533..bb65ea4cc4 100644 --- a/test/functional/ui/multibyte_spec.lua +++ b/test/functional/ui/multibyte_spec.lua @@ -7,7 +7,7 @@ local feed_command = helpers.feed_command local insert = helpers.insert local funcs = helpers.funcs local meths = helpers.meths -local split = helpers.split +local split = vim.split local dedent = helpers.dedent describe('multibyte rendering', function() diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 47e343789a..07bb1c3258 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -72,10 +72,10 @@ local helpers = require('test.functional.helpers')(nil) local busted = require('busted') -local deepcopy = helpers.deepcopy +local deepcopy = vim.deepcopy local shallowcopy = helpers.shallowcopy local concat_tables = helpers.concat_tables -local pesc = helpers.pesc +local pesc = vim.pesc local run_session = helpers.run_session local eq = helpers.eq local dedent = helpers.dedent |