test: do not inject vim module into global helpers

This commit is contained in:
Lewis Russell
2024-01-12 11:28:20 +00:00
parent 2f9ee9b6cf
commit d33e1da9b7
44 changed files with 132 additions and 133 deletions

View File

@@ -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 os = require('os')
local clear, feed = helpers.clear, helpers.feed
local assert_alive = helpers.assert_alive
@@ -17,9 +16,9 @@ local curbufmeths = helpers.curbufmeths
local funcs = helpers.funcs
local run = helpers.run
local pcall_err = helpers.pcall_err
local tbl_contains = global_helpers.tbl_contains
local tbl_contains = vim.tbl_contains
local curbuf, curwin, curtab = helpers.curbuf, helpers.curwin, helpers.curtab
local NIL = helpers.NIL
local NIL = vim.NIL
describe('float window', function()
before_each(function()