aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/help_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-06-24 13:47:10 +0200
committerJustin M. Keyes <justinkz@gmail.com>2023-06-25 17:14:28 +0200
commit036da0d07921e67090d1a62c9a4e382ca09d8584 (patch)
treecd5326a81fe031c24b41a8cb524126a9ddb76e06 /test/functional/lua/help_spec.lua
parent3688735c2b63337ab8d8b12ac08b4e6e064e98a2 (diff)
downloadrneovim-036da0d07921e67090d1a62c9a4e382ca09d8584.tar.gz
rneovim-036da0d07921e67090d1a62c9a4e382ca09d8584.tar.bz2
rneovim-036da0d07921e67090d1a62c9a4e382ca09d8584.zip
fix(docs): vimdoc syntax errors
gen_help_html: truncate parse-error sample text
Diffstat (limited to 'test/functional/lua/help_spec.lua')
-rw-r--r--test/functional/lua/help_spec.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/lua/help_spec.lua b/test/functional/lua/help_spec.lua
index cdc7761e48..8d843cd208 100644
--- a/test/functional/lua/help_spec.lua
+++ b/test/functional/lua/help_spec.lua
@@ -19,11 +19,12 @@ describe(':help docs', function()
local rv = exec_lua([[return require('scripts.gen_help_html').validate('./build/runtime/doc')]])
-- Check that we actually found helpfiles.
ok(rv.helpfiles > 100, '>100 :help files', rv.helpfiles)
+
+ eq({}, rv.parse_errors, 'no parse errors')
+ eq(0, rv.err_count, 'no parse errors')
eq({}, rv.invalid_links, 'invalid tags in :help docs')
eq({}, rv.invalid_urls, 'invalid URLs in :help docs')
- eq({}, rv.invalid_spelling, 'invalid spelling in :help docs')
- -- Check that parse errors did not increase.
- ok(rv.err_count == 0, 'no parse errors', rv.err_count)
+ eq({}, rv.invalid_spelling, 'invalid spelling in :help docs (see spell_dict in scripts/gen_help_html.lua)')
end)
it('gen_help_html.lua generates HTML', function()