test(checkhealth): nested path 'runtimepath' #33034

This commit is contained in:
phanium
2025-03-24 07:30:08 +08:00
committed by GitHub
parent 958df63606
commit c982608226
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
return {
check = function()
vim.health.start('healthy pack')
vim.health.ok('healthy ok')
end,
}

View File

@@ -224,6 +224,24 @@ describe('vim.health', function()
- OK everything is ok
]])
end)
it('&rtp can contain nested path (by packadd)', function()
-- re-add to ensure this appears before new nested rtp
command([[set runtimepath-=test/functional/fixtures]])
command([[set runtimepath+=test/functional/fixtures]])
command('set packpath+=test/functional/fixtures')
-- set rtp+=test/functional/fixtures/pack/foo/opt/healthy
command('packadd healthy')
command('checkhealth nest')
n.expect([[
==============================================================================
nest: require("nest.health").check()
healthy pack ~
- OK healthy ok
]])
end)
end)
end)