fix: better tests

This commit is contained in:
Barrett Ruth 2025-09-23 15:32:04 -04:00
parent 30c1c0f2cf
commit a2b3de51d7
3 changed files with 39 additions and 2 deletions

View file

@ -26,6 +26,15 @@ describe('Panel integration', function()
state.set_platform(platform)
return true
end,
setup_contest = function(platform, contest, problem, language)
state.set_platform(platform)
state.set_contest_id(contest)
if problem then
state.set_problem_id(problem)
end
end,
setup_problem = function() end,
navigate_problem = function() end,
}
package.loaded['cp.setup'] = mock_setup