mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
test: fixed helper function to delete test directory
This commit is contained in:
parent
d34c85d580
commit
ad00eb1be2
3 changed files with 8 additions and 7 deletions
|
@ -23,7 +23,7 @@ function M.fs_create(files)
|
|||
end
|
||||
|
||||
function M.fs_rm(dir)
|
||||
dir = Util.norm(M.fs_root .. dir)
|
||||
dir = Util.norm(M.fs_root .. "/" .. dir)
|
||||
Util.walk(dir, function(path, _, type)
|
||||
if type == "directory" then
|
||||
vim.loop.fs_rmdir(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue