diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:18 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:29 +0100 |
commit | 04f2f864e270e772c6326cefdf24947f0130e492 (patch) | |
tree | 46f83f909b888a66c741032ab955afc6eab84292 /test/functional/lua/help_spec.lua | |
parent | 59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff) | |
download | rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2 rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip |
refactor: format test/*
Diffstat (limited to 'test/functional/lua/help_spec.lua')
-rw-r--r-- | test/functional/lua/help_spec.lua | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/functional/lua/help_spec.lua b/test/functional/lua/help_spec.lua index ef1b8ebf3f..12fd942474 100644 --- a/test/functional/lua/help_spec.lua +++ b/test/functional/lua/help_spec.lua @@ -8,7 +8,9 @@ local exec_lua = helpers.exec_lua local eq = helpers.eq local ok = helpers.ok -if helpers.skip(helpers.is_ci('cirrus'), 'No need to run this on Cirrus') then return end +if helpers.skip(helpers.is_ci('cirrus'), 'No need to run this on Cirrus') then + return +end describe(':help docs', function() before_each(clear) @@ -23,10 +25,14 @@ describe(':help docs', function() 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(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 (see spell_dict in scripts/gen_help_html.lua)') + 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() @@ -36,7 +42,8 @@ describe(':help docs', function() local tmpdir = exec_lua('return vim.fs.dirname(vim.fn.tempname())') -- Because gen() is slow (~30s), this test is limited to a few files. - local rv = exec_lua([[ + local rv = exec_lua( + [[ local to_dir = ... return require('scripts.gen_help_html').gen( './build/runtime/doc', |