fix: synchronous problem fetch
This commit is contained in:
parent
91ce43e529
commit
b406c0ce4e
12 changed files with 140 additions and 352 deletions
|
|
@ -12,7 +12,7 @@ describe('cp.execute', function()
|
|||
|
||||
vim.system = function(cmd, opts)
|
||||
table.insert(mock_system_calls, { cmd = cmd, opts = opts })
|
||||
if not cmd or #cmd == 0 then
|
||||
if vim.tbl_isempty(cmd) then
|
||||
return {
|
||||
wait = function()
|
||||
return { code = 0, stdout = '', stderr = '' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue