diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-18 14:09:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-18 15:48:13 +0200 |
commit | fd04877eb087b64d744a20db643f3abd630c70aa (patch) | |
tree | f5dadcc24cba5b83157657143a2aa9c0d91d6473 /test/functional/api | |
parent | 7669fc1e9b9dba015597974f4a2b46f2439b48da (diff) | |
download | rneovim-fd04877eb087b64d744a20db643f3abd630c70aa.tar.gz rneovim-fd04877eb087b64d744a20db643f3abd630c70aa.tar.bz2 rneovim-fd04877eb087b64d744a20db643f3abd630c70aa.zip |
test: remove use of require('test.helpers')
The test.functional.helpers and test.unit.helpers modules now include
all of the public functions from test.helpers, so there is no need to
separately require('test.helpers').
Diffstat (limited to 'test/functional/api')
-rw-r--r-- | test/functional/api/keymap_spec.lua | 5 | ||||
-rw-r--r-- | test/functional/api/vim_spec.lua | 9 |
2 files changed, 6 insertions, 8 deletions
diff --git a/test/functional/api/keymap_spec.lua b/test/functional/api/keymap_spec.lua index c150787425..b3f6bb7895 100644 --- a/test/functional/api/keymap_spec.lua +++ b/test/functional/api/keymap_spec.lua @@ -1,5 +1,4 @@ local helpers = require('test.functional.helpers')(after_each) -local global_helpers = require('test.helpers') local bufmeths = helpers.bufmeths local clear = helpers.clear @@ -12,8 +11,8 @@ local funcs = helpers.funcs local meths = helpers.meths local source = helpers.source -local shallowcopy = global_helpers.shallowcopy -local sleep = global_helpers.sleep +local shallowcopy = helpers.shallowcopy +local sleep = helpers.sleep describe('nvim_get_keymap', function() before_each(clear) diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 2178abab53..a7d8dc59ec 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1,6 +1,5 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') -local global_helpers = require('test.helpers') local NIL = helpers.NIL local clear, nvim, eq, neq = helpers.clear, helpers.nvim, helpers.eq, helpers.neq @@ -16,10 +15,10 @@ local request = helpers.request local source = helpers.source local next_msg = helpers.next_msg -local expect_err = global_helpers.expect_err -local format_string = global_helpers.format_string -local intchar2lua = global_helpers.intchar2lua -local mergedicts_copy = global_helpers.mergedicts_copy +local expect_err = helpers.expect_err +local format_string = helpers.format_string +local intchar2lua = helpers.intchar2lua +local mergedicts_copy = helpers.mergedicts_copy describe('API', function() before_each(clear) |