fix(ci): typing

This commit is contained in:
Barrett Ruth 2025-09-22 20:46:27 -04:00
parent 87f9439607
commit eb3f7762de
9 changed files with 339 additions and 155 deletions

View file

@ -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)