mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Fix require-d test modules not returning anything
This commit is contained in:
parent
589c52f769
commit
091c73038f
2 changed files with 4 additions and 0 deletions
|
@ -5,3 +5,5 @@ assert(module.Foo == "Bar", "Required module did not contain correct values")
|
||||||
assert(module.Hello == "World", "Required module did not contain correct values")
|
assert(module.Hello == "World", "Required module did not contain correct values")
|
||||||
|
|
||||||
require("modules/module")
|
require("modules/module")
|
||||||
|
|
||||||
|
return true
|
||||||
|
|
|
@ -3,3 +3,5 @@ local module = require("../modules/module")
|
||||||
assert(type(module) == "table", "Required module did not return a table")
|
assert(type(module) == "table", "Required module did not return a table")
|
||||||
assert(module.Foo == "Bar", "Required module did not contain correct values")
|
assert(module.Foo == "Bar", "Required module did not contain correct values")
|
||||||
assert(module.Hello == "World", "Required module did not contain correct values")
|
assert(module.Hello == "World", "Required module did not contain correct values")
|
||||||
|
|
||||||
|
return true
|
||||||
|
|
Loading…
Reference in a new issue