aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-12 11:28:20 +0000
committerLewis Russell <lewis6991@gmail.com>2024-01-12 12:04:18 +0000
commitd33e1da9b7f7e886219cfdd20b9bbfaccdc43be9 (patch)
tree847c5c36b440434ec046b3d454581f121cc8d6c5 /test/unit/helpers.lua
parent2f9ee9b6cfc61a0504fc0bc22bdf481828e2ea91 (diff)
downloadrneovim-d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9.tar.gz
rneovim-d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9.tar.bz2
rneovim-d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9.zip
test: do not inject vim module into global helpers
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua6
1 files changed, 3 insertions, 3 deletions
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