mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Update
This commit is contained in:
@@ -58,5 +58,11 @@ function M.input_empty_action_nil(x, y)
|
||||
end
|
||||
|
||||
|
||||
function M.input_text(text)
|
||||
return hash("text"), {
|
||||
text = text,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
return M
|
||||
|
@@ -1,20 +0,0 @@
|
||||
local mock = require("deftest.mock.mock")
|
||||
|
||||
local M = {}
|
||||
|
||||
-- Userdata type instead of script self
|
||||
---@return vector
|
||||
function M.get_context()
|
||||
return vmath.vector({})
|
||||
end
|
||||
|
||||
|
||||
-- Callback for return value from function
|
||||
function M.get_function(callback)
|
||||
local listener = {}
|
||||
listener.callback = function(...) if callback then return callback(...) end end
|
||||
mock.mock(listener)
|
||||
return function(...) return listener.callback(...) end, listener.callback
|
||||
end
|
||||
|
||||
return M
|
Reference in New Issue
Block a user