mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-09-29 01:56:29 +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
|
end
|
||||||
|
|
||||||
local form = flow.make_gui(build_func)
|
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
|
end
|
||||||
|
|
||||||
local function test_render(build_func, output, description)
|
local function test_render(build_func, output, description)
|
||||||
|
Loading…
Reference in New Issue
Block a user