tests: :checkhealth completion

This commit is contained in:
Marco Hinz 2018-01-18 15:54:25 +01:00
parent 6acbd76b00
commit 72a7a884b4
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -6,6 +6,7 @@ local clear = helpers.clear
local curbuf_contents = helpers.curbuf_contents
local command = helpers.command
local eq = helpers.eq
local getcompletion = helpers.funcs.getcompletion
describe(':checkhealth', function()
it("detects invalid $VIMRUNTIME", function()
@ -31,6 +32,11 @@ describe(':checkhealth', function()
eq("ERROR: $VIM is invalid: zub",
string.match(curbuf_contents(), "ERROR: $VIM .* zub"))
end)
it('completions can be listed via getcompletion()', function()
clear()
eq('nvim', getcompletion('nvim', 'checkhealth')[1])
eq('provider', getcompletion('prov', 'checkhealth')[1])
end)
end)
describe('health.vim', function()