mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 04:17:01 +00:00
tests: :checkhealth completion
This commit is contained in:
@@ -6,6 +6,7 @@ local clear = helpers.clear
|
|||||||
local curbuf_contents = helpers.curbuf_contents
|
local curbuf_contents = helpers.curbuf_contents
|
||||||
local command = helpers.command
|
local command = helpers.command
|
||||||
local eq = helpers.eq
|
local eq = helpers.eq
|
||||||
|
local getcompletion = helpers.funcs.getcompletion
|
||||||
|
|
||||||
describe(':checkhealth', function()
|
describe(':checkhealth', function()
|
||||||
it("detects invalid $VIMRUNTIME", function()
|
it("detects invalid $VIMRUNTIME", function()
|
||||||
@@ -31,6 +32,11 @@ describe(':checkhealth', function()
|
|||||||
eq("ERROR: $VIM is invalid: zub",
|
eq("ERROR: $VIM is invalid: zub",
|
||||||
string.match(curbuf_contents(), "ERROR: $VIM .* zub"))
|
string.match(curbuf_contents(), "ERROR: $VIM .* zub"))
|
||||||
end)
|
end)
|
||||||
|
it('completions can be listed via getcompletion()', function()
|
||||||
|
clear()
|
||||||
|
eq('nvim', getcompletion('nvim', 'checkhealth')[1])
|
||||||
|
eq('provider', getcompletion('prov', 'checkhealth')[1])
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe('health.vim', function()
|
describe('health.vim', function()
|
||||||
|
|||||||
Reference in New Issue
Block a user