mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 12:45:05 +00:00
15 lines
349 B
Lua
15 lines
349 B
Lua
return function()
|
|
it("should load all submodules", function()
|
|
local function loadRecursive(container)
|
|
if container:IsA("ModuleScript") and not container.Name:find("%.spec$") then
|
|
require(container)
|
|
end
|
|
|
|
for _, child in ipairs(container:GetChildren()) do
|
|
loadRecursive(child)
|
|
end
|
|
end
|
|
|
|
loadRecursive(script.Parent)
|
|
end)
|
|
end |