refactor: try to add unit test

This commit is contained in:
JuanZoran
2023-03-22 14:37:44 +08:00
parent 8be4fb7303
commit f63574026a
7 changed files with 27 additions and 20 deletions

View File

@ -74,7 +74,6 @@ function M:init_window(opts)
opts = opts or {}
local m_opts = self.opts
local option = {
ns = self.ns,
buffer = self.buffer,
animation = m_opts.animation,
}
@ -179,9 +178,7 @@ end
---@param data TransData
---@overload fun(result:TransResult)
function M:process(data)
if self.pin then
return
end
if self.pin then return end
local result, name = data:get_available_result()
if not result then