Add tests for hover component

This commit is contained in:
Insality
2022-10-08 16:11:45 +03:00
parent a87f775ac7
commit 51dc34613b
6 changed files with 140 additions and 1 deletions

View File

@@ -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