aboutsummaryrefslogtreecommitdiff
path: root/test/functional/provider/define_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/provider/define_spec.lua')
-rw-r--r--test/functional/provider/define_spec.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/functional/provider/define_spec.lua b/test/functional/provider/define_spec.lua
index 657f1a0d8a..3945486d98 100644
--- a/test/functional/provider/define_spec.lua
+++ b/test/functional/provider/define_spec.lua
@@ -1,8 +1,10 @@
-local helpers = require('test.functional.helpers')(after_each)
-local eval, command = helpers.eval, helpers.command
-local eq, run, stop = helpers.eq, helpers.run, helpers.stop
-local clear = helpers.clear
-local api = helpers.api
+local t = require('test.testutil')
+local n = require('test.functional.testnvim')()
+
+local eval, command = n.eval, n.command
+local eq, run, stop = t.eq, n.run, n.stop
+local clear = n.clear
+local api = n.api
local function get_prefix(sync)
if sync then
@@ -28,7 +30,7 @@ local function runx(sync, handler, on_setup)
local function setup_cb(...)
on_setup(...)
-- need to stop on setup callback because there's two session:request
- -- calls in `request/helpers.lua`. The second call will always return
+ -- calls in `request/testnvim.lua`. The second call will always return
-- after pending notification/request callbacks are processed
stop()
end
@@ -324,7 +326,7 @@ local function function_specs_for(fn, sync, first_arg_factory, init)
end)
it('with range', function()
- helpers.insert([[
+ n.insert([[
foo
bar
baz