test: replace lfs with luv and vim.fs

test: replace lfs with luv

luv already pretty much does everything lfs does, so this duplication
of dependencies isn't needed.
This commit is contained in:
dundargoc
2023-04-04 21:59:06 +02:00
committed by GitHub
parent b1de4820b7
commit 743860de40
41 changed files with 273 additions and 256 deletions

View File

@@ -1,5 +1,4 @@
local helpers = require('test.functional.helpers')(after_each)
local lfs = require('lfs')
local clear = helpers.clear
local exec_lua = helpers.exec_lua
@@ -11,6 +10,7 @@ local test_build_dir = helpers.test_build_dir
local test_source_path = helpers.test_source_path
local nvim_prog = helpers.nvim_prog
local is_os = helpers.is_os
local mkdir = helpers.mkdir
local nvim_prog_basename = is_os('win') and 'nvim.exe' or 'nvim'
@@ -133,10 +133,10 @@ describe('vim.fs', function()
describe('dir()', function()
before_each(function()
lfs.mkdir('testd')
lfs.mkdir('testd/a')
lfs.mkdir('testd/a/b')
lfs.mkdir('testd/a/b/c')
mkdir('testd')
mkdir('testd/a')
mkdir('testd/a/b')
mkdir('testd/a/b/c')
end)
after_each(function()