fix(test): unused vars

This commit is contained in:
Barrett Ruth 2025-09-23 15:09:13 -04:00
parent a08ad8e2ee
commit 30c1c0f2cf
3 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ describe('cp command parsing', function()
local mock_cache = {
load = function() end,
get_contest_data = function(platform, contest_id)
get_contest_data = function()
return {
problems = {
{ id = 'a', name = 'Problem A' },

View file

@ -14,7 +14,7 @@ describe('Error boundary handling', function()
package.loaded['cp.log'] = mock_logger
package.loaded['cp.scraper'] = {
scrape_problem_tests = function(platform, contest_id, problem_id, callback)
scrape_problem_tests = function(_, contest_id, problem_id, callback)
if contest_id == 'fail_scrape' then
callback({
success = false,
@ -30,7 +30,7 @@ describe('Error boundary handling', function()
},
})
end,
scrape_contest_metadata = function(platform, contest_id, callback)
scrape_contest_metadata = function(_, contest_id, callback)
if contest_id == 'fail_scrape' then
callback({
success = false,

View file

@ -157,7 +157,7 @@ describe('cp.picker', function()
end
-- Mock vim.system to return success with problems
vim.system = function(cmd, opts)
vim.system = function()
return {
wait = function()
return {