lune/tests/net/request/util.luau
2023-02-05 19:13:58 -05:00

20 lines
360 B
Lua

local util = {}
function util.pass(method, url, message: string)
local response = net.request({
method = method,
url = url,
})
assert(response.ok, message)
end
function util.fail(method, url, message: string)
local response = net.request({
method = method,
url = url,
})
console.log(response)
assert(not response.ok, message)
end
return util