mirror of
https://github.com/neovim/neovim.git
synced 2025-12-05 22:22:44 +00:00
test: do not inject vim module into global helpers
This commit is contained in:
@@ -6,12 +6,12 @@ local command = helpers.command
|
||||
local eq = helpers.eq
|
||||
local eval = helpers.eval
|
||||
local feed = helpers.feed
|
||||
local map = helpers.tbl_map
|
||||
local map = vim.tbl_map
|
||||
local nvim = helpers.nvim
|
||||
local parse_context = helpers.parse_context
|
||||
local exec_capture = helpers.exec_capture
|
||||
local source = helpers.source
|
||||
local trim = helpers.trim
|
||||
local trim = vim.trim
|
||||
local write_file = helpers.write_file
|
||||
local pcall_err = helpers.pcall_err
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ local command = helpers.command
|
||||
local exc_exec = helpers.exc_exec
|
||||
local pcall_err = helpers.pcall_err
|
||||
local async_meths = helpers.async_meths
|
||||
local NIL = helpers.NIL
|
||||
local NIL = vim.NIL
|
||||
|
||||
local screen
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ local eval = helpers.eval
|
||||
local command = helpers.command
|
||||
local exc_exec = helpers.exc_exec
|
||||
local pcall_err = helpers.pcall_err
|
||||
local NIL = helpers.NIL
|
||||
local NIL = vim.NIL
|
||||
local source = helpers.source
|
||||
|
||||
describe('json_decode() function', function()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear, eq, neq = helpers.clear, helpers.eq, helpers.neq
|
||||
local command, meths, funcs = helpers.command, helpers.meths, helpers.funcs
|
||||
local tbl_deep_extend = helpers.tbl_deep_extend
|
||||
local tbl_deep_extend = vim.tbl_deep_extend
|
||||
|
||||
-- Set up two overlapping floating windows
|
||||
local setup_floating_windows = function()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
|
||||
local eq = helpers.eq
|
||||
local NIL = helpers.NIL
|
||||
local NIL = vim.NIL
|
||||
local eval = helpers.eval
|
||||
local clear = helpers.clear
|
||||
local meths = helpers.meths
|
||||
|
||||
@@ -6,7 +6,7 @@ local clear = helpers.clear
|
||||
local eval = helpers.eval
|
||||
local eq = helpers.eq
|
||||
local meths = helpers.meths
|
||||
local NIL = helpers.NIL
|
||||
local NIL = vim.NIL
|
||||
|
||||
describe('Special values', function()
|
||||
before_each(clear)
|
||||
|
||||
@@ -7,7 +7,7 @@ local eval = helpers.eval
|
||||
local exc_exec = helpers.exc_exec
|
||||
local pcall_err = helpers.pcall_err
|
||||
local funcs = helpers.funcs
|
||||
local NIL = helpers.NIL
|
||||
local NIL = vim.NIL
|
||||
local source = helpers.source
|
||||
|
||||
describe('string() function', function()
|
||||
|
||||
Reference in New Issue
Block a user