test: refactor tests to use new helper methods

This commit is contained in:
Steven Arcangeli 2025-01-24 15:41:27 -08:00
parent 57528bf9c5
commit 2f6ed70161
5 changed files with 22 additions and 33 deletions

View file

@ -34,6 +34,10 @@ local function throwiferr(err, ...)
end
end
M.oil_open = function(...)
a.wrap(require("oil").open, 3)(...)
end
M.await = function(fn, nargs, ...)
return throwiferr(a.wrap(fn, nargs)(...))
end