From 847f04d1e8c275c988212568d014ab001319cd92 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Mon, 22 Sep 2025 20:15:09 -0400 Subject: [PATCH] fix(test): fix --- spec/error_boundaries_spec.lua | 4 ++-- spec/spec_helper.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/error_boundaries_spec.lua b/spec/error_boundaries_spec.lua index aafe73c..9291d05 100644 --- a/spec/error_boundaries_spec.lua +++ b/spec/error_boundaries_spec.lua @@ -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 } diff --git a/spec/spec_helper.lua b/spec/spec_helper.lua index 07352a9..e238a07 100644 --- a/spec/spec_helper.lua +++ b/spec/spec_helper.lua @@ -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 = {