fix(test): async impl

This commit is contained in:
Barrett Ruth 2025-09-23 14:48:01 -04:00
parent 2707df28ce
commit 4b9d63e4b8
3 changed files with 75 additions and 26 deletions

View file

@ -147,14 +147,14 @@ describe('cp.picker', function()
return nil
end
package.loaded['cp.scrape'] = {
scrape_contest_metadata = function(_, _)
return {
package.loaded['cp.scraper'] = {
scrape_contest_metadata = function(platform, contest_id, callback)
callback({
success = true,
problems = {
{ id = 'x', name = 'Problem X' },
},
}
})
end,
}