diff --git a/spec/command_parsing_spec.lua b/spec/command_parsing_spec.lua index f1a8859..ef4286b 100644 --- a/spec/command_parsing_spec.lua +++ b/spec/command_parsing_spec.lua @@ -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' }, diff --git a/spec/error_boundaries_spec.lua b/spec/error_boundaries_spec.lua index 577b16f..0af5f2a 100644 --- a/spec/error_boundaries_spec.lua +++ b/spec/error_boundaries_spec.lua @@ -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, diff --git a/spec/picker_spec.lua b/spec/picker_spec.lua index 2d731ee..78d1e07 100644 --- a/spec/picker_spec.lua +++ b/spec/picker_spec.lua @@ -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 {