lune/tests/require/tests/async_sequential.luau
2023-08-22 20:00:58 -05:00

16 lines
704 B
Lua

local task = require("@lune/task")
local module1 = require("./modules/async")
local module2 = require("./modules/async")
task.wait(1)
assert(type(module1) == "table", "Required module1 did not return a table")
assert(module1.Foo == "Bar", "Required module1 did not contain correct values")
assert(module1.Hello == "World", "Required module1 did not contain correct values")
assert(type(module2) == "table", "Required module2 did not return a table")
assert(module2.Foo == "Bar", "Required module2 did not contain correct values")
assert(module2.Hello == "World", "Required module2 did not contain correct values")
assert(module1 == module2, "Required modules should point to the same return value")