fix(test): async impl
This commit is contained in:
parent
2707df28ce
commit
4b9d63e4b8
3 changed files with 75 additions and 26 deletions
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue