fix(ci): typing
This commit is contained in:
parent
87f9439607
commit
eb3f7762de
9 changed files with 339 additions and 155 deletions
|
|
@ -158,9 +158,7 @@ describe('cp.picker', function()
|
|||
end,
|
||||
}
|
||||
|
||||
package.loaded['cp.pickers.init'] = nil
|
||||
package.loaded['cp.pickers'] = nil
|
||||
picker = require('cp.pickers')
|
||||
picker = spec_helper.fresh_require('cp.pickers', { 'cp.pickers.init' })
|
||||
|
||||
local problems = picker.get_problems_for_contest('test_platform', 'test_contest')
|
||||
assert.is_table(problems)
|
||||
|
|
@ -183,6 +181,8 @@ describe('cp.picker', function()
|
|||
}
|
||||
end
|
||||
|
||||
picker = spec_helper.fresh_require('cp.pickers', { 'cp.pickers.init' })
|
||||
|
||||
local problems = picker.get_problems_for_contest('test_platform', 'test_contest')
|
||||
assert.is_table(problems)
|
||||
assert.equals(0, #problems)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue