fixup
This commit is contained in:
parent
5dd4d9109a
commit
e171017ab0
16 changed files with 497 additions and 1354 deletions
|
|
@ -168,18 +168,11 @@ describe('cp.picker', function()
|
|||
|
||||
it('returns empty list when scraping fails', function()
|
||||
local cache = require('cp.cache')
|
||||
local scrape = require('cp.scrape')
|
||||
|
||||
cache.load = function() end
|
||||
cache.get_contest_data = function(_, _)
|
||||
return nil
|
||||
end
|
||||
scrape.scrape_contest_metadata = function(_, _)
|
||||
return {
|
||||
success = false,
|
||||
error = 'test error',
|
||||
}
|
||||
end
|
||||
|
||||
picker = spec_helper.fresh_require('cp.pickers', { 'cp.pickers.init' })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue