aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-12-09 20:55:26 +0100
committerKim Alvefur <zash@zash.se>2023-12-09 20:55:26 +0100
commita67e816055931c6bef1c949fc4f3378c40f90d9f (patch)
tree324e9ef84e0cd386628447d20b25db4d53fa5198
parent49a62a0d1e90f9a42a1920b579682605c789c2f6 (diff)
downloadprosody-a67e816055931c6bef1c949fc4f3378c40f90d9f.tar.gz
prosody-a67e816055931c6bef1c949fc4f3378c40f90d9f.zip
core.moduleapi: Silence strict luacheck warnings in tests
-rw-r--r--spec/core_moduleapi_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/core_moduleapi_spec.lua b/spec/core_moduleapi_spec.lua
index 20431935..21261385 100644
--- a/spec/core_moduleapi_spec.lua
+++ b/spec/core_moduleapi_spec.lua
@@ -11,8 +11,8 @@ local api = require "core.moduleapi";
local module = setmetatable({}, {__index = api});
local opt = nil;
-function module:log() end
-function module:get_option(name)
+function module.log(_self) end
+function module.get_option(_self, name)
if name == "opt" then
return opt;
else
@@ -20,7 +20,7 @@ function module:get_option(name)
end
end
-function test_option_value(value, returns)
+local function test_option_value(value, returns)
opt = value;
assert(module:get_option_number("opt") == returns.number, "number doesn't match");
assert(module:get_option_string("opt") == returns.string, "string doesn't match");