fix(test): fix

This commit is contained in:
Barrett Ruth 2025-09-22 20:15:09 -04:00
parent 1b5e713945
commit 847f04d1e8
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ describe('Error boundary handling', function()
test_count = 1,
}
end,
scrape_contest_metadata = function(platform, contest_id)
scrape_contest_metadata = function(_, contest_id)
if contest_id == 'fail_metadata' then
return {
success = false,
@ -87,7 +87,7 @@ describe('Error boundary handling', function()
vim.cmd.e = function() end
vim.cmd.only = function() end
if not vim.system then
vim.system = function(cmd)
vim.system = function(_)
return {
wait = function()
return { code = 0 }

View file

@ -40,7 +40,7 @@ local function setup_vim_mocks()
vim.cmd.split = function() end
vim.cmd.vsplit = function() end
if not vim.system then
vim.system = function(cmd)
vim.system = function(_)
return {
wait = function()
return { code = 0 }
@ -87,7 +87,7 @@ function M.mock_scraper_success()
test_count = 2,
}
end,
scrape_contest_metadata = function(platform, contest_id)
scrape_contest_metadata = function(_, _)
return {
success = true,
problems = {