From 8deb08696f58e8378b42ad62ab25a689f63a7a8e Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Mon, 10 Jun 2024 19:51:25 +0200 Subject: [PATCH] unitest --- unittest.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/unittest.lua b/unittest.lua index bbd05b3..81722a6 100644 --- a/unittest.lua +++ b/unittest.lua @@ -1,5 +1,3 @@ --- Ensure a best possible compatibility with `_` underscore delimiter weirdnesses - local function get_skin(skin_name) local skin = skins.get(skin_name) or skins.__fuzzy_match_skin_name("(unittest)", skin_name, true) @@ -48,6 +46,6 @@ local function run_unittest() error("Unittest passed! Please disable them now.") end - ---run_unittest() - +if skins._enable_unittest then + run_unittest() +end