aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2016-04-26 21:14:33 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2016-04-28 19:30:17 +0200
commit360d0513d1ba2d6e2b8948daad5bb56f11db7070 (patch)
treef365f1bae22f77bae5730b383b48b1646af21b33 /test/functional/helpers.lua
parente861af85f89e119193a9e219a4cb766757e28e5a (diff)
downloadrneovim-360d0513d1ba2d6e2b8948daad5bb56f11db7070.tar.gz
rneovim-360d0513d1ba2d6e2b8948daad5bb56f11db7070.tar.bz2
rneovim-360d0513d1ba2d6e2b8948daad5bb56f11db7070.zip
Satisfy testlint.
For that, make luatest ignore the preload.lua files.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index a382641cff..6ccadda72d 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -1,5 +1,4 @@
require('coxpcall')
-NIL = require('mpack').NIL
local lfs = require('lfs')
local assert = require('luassert')
local ChildProcessStream = require('nvim.child_process_stream')
@@ -10,6 +9,8 @@ local nvim_argv = {nvim_prog, '-u', 'NONE', '-i', 'NONE', '-N',
'--cmd', 'set shortmess+=I background=light noswapfile noautoindent laststatus=1 undodir=. directory=. viewdir=. backupdir=.',
'--embed'}
+local mpack = require('mpack')
+
-- Formulate a path to the directory containing nvim. We use this to
-- help run test executables. It helps to keep the tests working, even
-- when the build is not in the default location.
@@ -452,4 +453,5 @@ return {
curbufmeths = curbufmeths,
curwinmeths = curwinmeths,
curtabmeths = curtabmeths,
+ NIL = mpack.NIL
}