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

View file

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