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/core | |
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/core')
-rw-r--r-- | test/functional/core/fileio_spec.lua | 8 | ||||
-rw-r--r-- | test/functional/core/job_spec.lua | 36 | ||||
-rw-r--r-- | test/functional/core/startup_spec.lua | 10 |
3 files changed, 27 insertions, 27 deletions
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua index 1b9a97648c..3aaa4383b4 100644 --- a/test/functional/core/fileio_spec.lua +++ b/test/functional/core/fileio_spec.lua @@ -1,4 +1,4 @@ -local luv = require('luv') +local uv = vim.uv local helpers = require('test.functional.helpers')(after_each) local assert_log = helpers.assert_log @@ -19,7 +19,7 @@ local meths = helpers.meths local mkdir = helpers.mkdir local sleep = helpers.sleep local read_file = helpers.read_file -local trim = helpers.trim +local trim = vim.trim local currentdir = helpers.funcs.getcwd local assert_alive = helpers.assert_alive local check_close = helpers.check_close @@ -210,7 +210,7 @@ describe('fileio', function() local backup_file_name = link_file_name .. '~' write_file('Xtest_startup_file1', initial_content, false) - luv.fs_symlink('Xtest_startup_file1', link_file_name) + uv.fs_symlink('Xtest_startup_file1', link_file_name) command('set backup') command('set backupcopy=yes') command('edit ' .. link_file_name) @@ -233,7 +233,7 @@ describe('fileio', function() local backup_file_name = backup_dir .. sep .. link_file_name .. '~' write_file('Xtest_startup_file1', initial_content, false) - luv.fs_symlink('Xtest_startup_file1', link_file_name) + uv.fs_symlink('Xtest_startup_file1', link_file_name) mkdir(backup_dir) command('set backup') command('set backupcopy=yes') diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 9c82d0bc7c..210007f027 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -1,29 +1,29 @@ local helpers = require('test.functional.helpers')(after_each) local thelpers = require('test.functional.terminal.helpers') -local clear, eq, eval, exc_exec, feed_command, feed, insert, neq, next_msg, nvim, testprg, ok, source, write_file, mkdir, rmdir = - helpers.clear, - helpers.eq, - helpers.eval, - helpers.exc_exec, - helpers.feed_command, - helpers.feed, - helpers.insert, - helpers.neq, - helpers.next_msg, - helpers.nvim, - helpers.testprg, - helpers.ok, - helpers.source, - helpers.write_file, - helpers.mkdir, - helpers.rmdir + +local clear = helpers.clear +local eq = helpers.eq +local eval = helpers.eval +local exc_exec = helpers.exc_exec +local feed_command = helpers.feed_command +local feed = helpers.feed +local insert = helpers.insert +local neq = helpers.neq +local next_msg = helpers.next_msg +local nvim = helpers.nvim +local testprg = helpers.testprg +local ok = helpers.ok +local source = helpers.source +local write_file = helpers.write_file +local mkdir = helpers.mkdir +local rmdir = helpers.rmdir local assert_alive = helpers.assert_alive local command = helpers.command local funcs = helpers.funcs local os_kill = helpers.os_kill local retry = helpers.retry local meths = helpers.meths -local NIL = helpers.NIL +local NIL = vim.NIL local poke_eventloop = helpers.poke_eventloop local get_pathsep = helpers.get_pathsep local pathroot = helpers.pathroot diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index ebf9deb86b..7953a101e1 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -14,7 +14,7 @@ local exec_capture = helpers.exec_capture local exec_lua = helpers.exec_lua local feed = helpers.feed local funcs = helpers.funcs -local pesc = helpers.pesc +local pesc = vim.pesc local mkdir = helpers.mkdir local mkdir_p = helpers.mkdir_p local nvim_prog = helpers.nvim_prog @@ -23,15 +23,15 @@ local read_file = helpers.read_file local retry = helpers.retry local rmdir = helpers.rmdir local sleep = helpers.sleep -local startswith = helpers.startswith +local startswith = vim.startswith local write_file = helpers.write_file local meths = helpers.meths local alter_slashes = helpers.alter_slashes local is_os = helpers.is_os local dedent = helpers.dedent -local tbl_map = helpers.tbl_map -local tbl_filter = helpers.tbl_filter -local endswith = helpers.endswith +local tbl_map = vim.tbl_map +local tbl_filter = vim.tbl_filter +local endswith = vim.endswith describe('startup', function() it('--clean', function() |