refactor: split parser tests into new test file

This commit is contained in:
Steven Arcangeli 2023-09-09 19:02:38 -07:00
parent 926ae067eb
commit 25c84b6469
3 changed files with 247 additions and 241 deletions

View file

@ -1,5 +1,6 @@
require("plenary.async").tests.add_to_env()
local cache = require("oil.cache")
local test_adapter = require("oil.adapters.test")
local M = {}
M.reset_editor = function()
@ -21,6 +22,7 @@ M.reset_editor = function()
vim.api.nvim_buf_delete(bufnr, { force = true })
end
cache.clear_everything()
test_adapter.test_clear()
end
M.wait_for_autocmd = a.wrap(function(autocmd, cb)