fix(ci): add contest to mock
This commit is contained in:
parent
e904a746d3
commit
41f1d4124a
1 changed files with 7 additions and 1 deletions
|
|
@ -72,10 +72,16 @@ describe('cp test panel', function()
|
||||||
package.loaded['cp.test'] = mock_test_module
|
package.loaded['cp.test'] = mock_test_module
|
||||||
|
|
||||||
mock_problem_module = {
|
mock_problem_module = {
|
||||||
create_context = function()
|
create_context = function(contest, contest_id, problem_id, config, language)
|
||||||
return {
|
return {
|
||||||
|
contest = contest or 'atcoder',
|
||||||
|
contest_id = contest_id or 'abc123',
|
||||||
|
problem_id = problem_id or 'a',
|
||||||
source_file = 'test.cpp',
|
source_file = 'test.cpp',
|
||||||
binary_file = 'build/test.run',
|
binary_file = 'build/test.run',
|
||||||
|
input_file = 'io/test.cpin',
|
||||||
|
output_file = 'io/test.cpout',
|
||||||
|
expected_file = 'io/test.expected',
|
||||||
problem_name = 'test',
|
problem_name = 'test',
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue