mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Add tests for hover component
This commit is contained in:
@@ -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