From d33e1da9b7f7e886219cfdd20b9bbfaccdc43be9 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Fri, 12 Jan 2024 11:28:20 +0000 Subject: test: do not inject vim module into global helpers --- test/unit/helpers.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/unit/helpers.lua') 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 -- cgit