fix(test): mock
This commit is contained in:
parent
76cb1e456e
commit
a84b1697bf
4 changed files with 52 additions and 3 deletions
|
|
@ -75,10 +75,15 @@ describe('async integration', function()
|
|||
end,
|
||||
}
|
||||
|
||||
vim.cmd = {
|
||||
local cmd_methods = {
|
||||
e = function() end,
|
||||
only = function() end,
|
||||
startinsert = function() end,
|
||||
stopinsert = function() end,
|
||||
}
|
||||
vim.cmd = setmetatable(function() end, {
|
||||
__index = cmd_methods,
|
||||
})
|
||||
vim.api.nvim_get_current_buf = function()
|
||||
return 1
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue