From 30c1c0f2cfcd0cee056c544fa1c2a6ca773c13fd Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 23 Sep 2025 15:09:13 -0400 Subject: [PATCH] fix(test): unused vars --- spec/command_parsing_spec.lua | 2 +- spec/error_boundaries_spec.lua | 4 ++-- spec/picker_spec.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 {