lune/tests/require/tests/builtins.luau

27 lines
652 B
Lua

local fs = require("@lune/fs")
local net = require("@lune/net")
local process = require("@lune/process")
local stdio = require("@lune/stdio")
local task = require("@lune/task")
assert(type(fs.move) == "function")
assert(type(net.request) == "function")
assert(type(process.cwd) == "string")
assert(type(stdio.format("")) == "string")
assert(type(task.spawn(function() end)) == "thread")
assert(not pcall(function()
return require("@") :: any
end))
assert(not pcall(function()
return require("@lune") :: any
end))
assert(not pcall(function()
return require("@lune/") :: any
end))
assert(not pcall(function()
return require("@src") :: any
end))