fix(ci): var shadowing and proper mocking
This commit is contained in:
parent
36ef39479f
commit
d96d810328
1 changed files with 4 additions and 0 deletions
|
|
@ -189,6 +189,10 @@ describe('cp.scrape', function()
|
|||
return false
|
||||
end
|
||||
|
||||
-- Force reload the scrape module to pick up the updated mock
|
||||
package.loaded['cp.scrape'] = nil
|
||||
scrape = require('cp.scrape')
|
||||
|
||||
vim.system = function(cmd)
|
||||
if cmd[1] == 'ping' then
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue