fix(test): typing

This commit is contained in:
Lewis Russell
2024-03-25 19:06:28 +00:00
committed by Lewis Russell
parent 3fd8292aaf
commit a7bbda121d
15 changed files with 180 additions and 186 deletions

View File

@@ -73,12 +73,12 @@ describe('vim.loader', function()
vim.loader.enable()
]]
local tmp1, tmp2 = (function(t)
assert(os.remove(t))
assert(helpers.mkdir(t))
assert(helpers.mkdir(t .. '/%'))
return t .. '/%/x', t .. '/%%x'
end)(helpers.tmpname())
local t = helpers.tmpname()
assert(os.remove(t))
assert(helpers.mkdir(t))
assert(helpers.mkdir(t .. '/%'))
local tmp1 = t .. '/%/x'
local tmp2 = t .. '/%%x'
helpers.write_file(tmp1, 'return 1', true)
helpers.write_file(tmp2, 'return 2', true)