mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 10:02:18 +02:00
Add tests for hover component
This commit is contained in:
@@ -50,4 +50,13 @@ function M.input_empty(x, y)
|
||||
end
|
||||
|
||||
|
||||
function M.input_empty_action_nil(x, y)
|
||||
return nil, {
|
||||
x = x,
|
||||
y = y,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
|
||||
return M
|
||||
|
@@ -11,7 +11,7 @@ end
|
||||
-- Callback for return value from function
|
||||
function M.get_function(callback)
|
||||
local listener = {}
|
||||
listener.callback = function() if callback then return callback() end end
|
||||
listener.callback = function(...) if callback then return callback(...) end end
|
||||
mock.mock(listener)
|
||||
return function(...) return listener.callback(...) end, listener.callback
|
||||
end
|
||||
|
Reference in New Issue
Block a user