lune-packaging/tests/globals/require/tests/nested.luau
2023-02-17 19:20:17 +01:00

9 lines
474 B
Lua

local module = require("./modules/nested")
assert(type(module) == "table", "Required module did not return a table")
assert(module.Foo == "Bar", "Required module did not contain correct values")
assert(module.Hello == "World", "Required module did not contain correct values")
module = require("modules/nested")
assert(module.Foo == "Bar", "Required module did not contain correct values")
assert(module.Hello == "World", "Required module did not contain correct values")