fix(test): unused vars
This commit is contained in:
parent
a08ad8e2ee
commit
30c1c0f2cf
3 changed files with 4 additions and 4 deletions
|
|
@ -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' },
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue