test: refactor tests to use new helper methods
This commit is contained in:
parent
57528bf9c5
commit
2f6ed70161
5 changed files with 22 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue