Fix require-d test modules not returning anything

This commit is contained in:
Filip Tibell 2023-01-29 18:59:51 -05:00
parent 589c52f769
commit 091c73038f
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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