fix(test): remove useless health test
This commit is contained in:
parent
84af9c0d40
commit
bcaefcb34d
1 changed files with 0 additions and 44 deletions
|
|
@ -1,44 +0,0 @@
|
||||||
describe('cp.health', function()
|
|
||||||
local health
|
|
||||||
|
|
||||||
before_each(function()
|
|
||||||
local original_gsub = string.gsub
|
|
||||||
string.gsub = original_gsub
|
|
||||||
|
|
||||||
vim.fn = vim.tbl_extend('force', vim.fn, {
|
|
||||||
executable = function()
|
|
||||||
return 1
|
|
||||||
end,
|
|
||||||
filereadable = function()
|
|
||||||
return 1
|
|
||||||
end,
|
|
||||||
has = function()
|
|
||||||
return 1
|
|
||||||
end,
|
|
||||||
isdirectory = function()
|
|
||||||
return 1
|
|
||||||
end,
|
|
||||||
fnamemodify = function()
|
|
||||||
return '/test/path'
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.system = function()
|
|
||||||
return {
|
|
||||||
wait = function()
|
|
||||||
return { code = 0, stdout = 'test version\n' }
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
health = require('cp.health')
|
|
||||||
end)
|
|
||||||
|
|
||||||
describe('check function', function()
|
|
||||||
it('runs without error', function()
|
|
||||||
assert.has_no_errors(function()
|
|
||||||
health.check()
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue