mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-09-17 20:26:30 +02:00
Use stub_player for render unit tests
This commit is contained in:
parent
663df4c7a7
commit
41eae37ad3
2
test.lua
2
test.lua
@ -149,7 +149,7 @@ local function render(build_func, ctx, fs_ver)
|
||||
end
|
||||
|
||||
local form = flow.make_gui(build_func)
|
||||
return form:_render({get_player_name = "test"}, ctx or {}, fs_ver)
|
||||
return form:_render(stub_player("test"), ctx or {}, fs_ver)
|
||||
end
|
||||
|
||||
local function test_render(build_func, output, description)
|
||||
|
Loading…
Reference in New Issue
Block a user