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/unit | |
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/unit')
-rw-r--r-- | test/unit/eval/typval_spec.lua | 2 | ||||
-rw-r--r-- | test/unit/helpers.lua | 6 | ||||
-rw-r--r-- | test/unit/os/fs_spec.lua | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/eval/typval_spec.lua b/test/unit/eval/typval_spec.lua index da70b8feba..6edd164438 100644 --- a/test/unit/eval/typval_spec.lua +++ b/test/unit/eval/typval_spec.lua @@ -14,7 +14,7 @@ local cimport = helpers.cimport local to_cstr = helpers.to_cstr local alloc_log_new = helpers.alloc_log_new local concat_tables = helpers.concat_tables -local map = helpers.tbl_map +local map = vim.tbl_map local a = eval_helpers.alloc_logging_helpers local int = eval_helpers.int diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index 86d02e8c31..47499d98fa 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -10,9 +10,9 @@ local say = require('say') local check_cores = global_helpers.check_cores local dedent = global_helpers.dedent local neq = global_helpers.neq -local map = global_helpers.tbl_map +local map = vim.tbl_map local eq = global_helpers.eq -local trim = global_helpers.trim +local trim = vim.trim -- add some standard header locations for _, p in ipairs(Paths.include_paths) do @@ -904,7 +904,7 @@ local module = { is_asan = is_asan, } --- @class test.unit.helpers: test.unit.helpers.module, test.helpers -module = global_helpers.tbl_extend('error', module, global_helpers) +module = vim.tbl_extend('error', module, global_helpers) return function() return module diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua index e635fc9667..0a0aeaa35e 100644 --- a/test/unit/os/fs_spec.lua +++ b/test/unit/os/fs_spec.lua @@ -17,7 +17,7 @@ local OK = helpers.OK local FAIL = helpers.FAIL local NULL = helpers.NULL local mkdir = helpers.mkdir -local endswith = helpers.endswith +local endswith = vim.endswith local NODE_NORMAL = 0 local NODE_WRITABLE = 1 |