test: Eliminate plugin/helpers.lua

This commit is contained in:
Justin M. Keyes
2019-08-05 10:25:49 +02:00
parent 7086751c5e
commit 330a6713bf
5 changed files with 21 additions and 54 deletions

View File

@@ -1,15 +1,15 @@
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local meths = helpers.meths
local eq, nvim_eval, nvim_command, exc_exec =
helpers.eq, helpers.eval, helpers.command, helpers.exc_exec
local ok = helpers.ok
local NIL = helpers.NIL
local plugin_helpers = require('test.functional.plugin.helpers')
local reset = plugin_helpers.reset
describe('autoload/msgpack.vim', function()
before_each(reset)
before_each(function()
clear{args={'-u', 'NORC'}}
end)
local sp = function(typ, val)
return ('{"_TYPE": v:msgpack_types.%s, "_VAL": %s}'):format(typ, val)