mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tests: :checkhealth completion
This commit is contained in:
parent
6acbd76b00
commit
72a7a884b4
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user