aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/unittests/itemdescription.lua
diff options
context:
space:
mode:
Diffstat (limited to 'games/devtest/mods/unittests/itemdescription.lua')
-rw-r--r--games/devtest/mods/unittests/itemdescription.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/games/devtest/mods/unittests/itemdescription.lua b/games/devtest/mods/unittests/itemdescription.lua
index d6ee6551a..dc62de7f0 100644
--- a/games/devtest/mods/unittests/itemdescription.lua
+++ b/games/devtest/mods/unittests/itemdescription.lua
@@ -25,7 +25,7 @@ minetest.register_chatcommand("item_description", {
end
})
-function unittests.test_short_desc()
+local function test_short_desc()
local function get_short_description(item)
return ItemStack(item):get_short_description()
end
@@ -49,3 +49,4 @@ function unittests.test_short_desc()
return true
end
+unittests.register("test_short_desc", test_short_desc)