fix(ci): fix tests

This commit is contained in:
Barrett Ruth 2025-09-19 00:26:18 -04:00
parent 531784778a
commit 5bf40bb694
3 changed files with 21 additions and 4 deletions

View file

@ -102,6 +102,7 @@ describe('cp test panel', function()
has = function()
return 1
end,
mkdir = function() end,
})
local _original_nvim_create_buf = vim.api.nvim_create_buf
@ -127,11 +128,21 @@ describe('cp test panel', function()
end
vim.api.nvim_set_current_win = function() end
vim.cmd = {
local cmd_table = {
split = function() end,
vsplit = function() end,
diffthis = function() end,
}
vim.cmd = setmetatable(cmd_table, {
__call = function(_, cmd_str)
if cmd_str and cmd_str:match('silent! %%bwipeout!') then
return
end
end,
__index = cmd_table,
__newindex = cmd_table,
})
vim.keymap = {
set = function() end,
}