fix: better tests
This commit is contained in:
parent
30c1c0f2cf
commit
a2b3de51d7
3 changed files with 39 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue