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 = {
|
local mock_cache = {
|
||||||
load = function() end,
|
load = function() end,
|
||||||
get_contest_data = function(platform, contest_id)
|
get_contest_data = function()
|
||||||
return {
|
return {
|
||||||
problems = {
|
problems = {
|
||||||
{ id = 'a', name = 'Problem A' },
|
{ id = 'a', name = 'Problem A' },
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ describe('Error boundary handling', function()
|
||||||
package.loaded['cp.log'] = mock_logger
|
package.loaded['cp.log'] = mock_logger
|
||||||
|
|
||||||
package.loaded['cp.scraper'] = {
|
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
|
if contest_id == 'fail_scrape' then
|
||||||
callback({
|
callback({
|
||||||
success = false,
|
success = false,
|
||||||
|
|
@ -30,7 +30,7 @@ describe('Error boundary handling', function()
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
scrape_contest_metadata = function(platform, contest_id, callback)
|
scrape_contest_metadata = function(_, contest_id, callback)
|
||||||
if contest_id == 'fail_scrape' then
|
if contest_id == 'fail_scrape' then
|
||||||
callback({
|
callback({
|
||||||
success = false,
|
success = false,
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ describe('cp.picker', function()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Mock vim.system to return success with problems
|
-- Mock vim.system to return success with problems
|
||||||
vim.system = function(cmd, opts)
|
vim.system = function()
|
||||||
return {
|
return {
|
||||||
wait = function()
|
wait = function()
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue