diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-10-30 11:39:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 11:39:38 -0400 |
commit | 19dab2ead2dfc49c24e004fcdbbef6948b7bde94 (patch) | |
tree | d42b3cc266d34ff80736060dd52ad3a30a1a8ccd /test | |
parent | 6e84a46abcc01de11f52cdd3d13cc3ef2ce95e69 (diff) | |
parent | cc7c378bf319d62491ca121ab598397428e4ced4 (diff) | |
download | rneovim-19dab2ead2dfc49c24e004fcdbbef6948b7bde94.tar.gz rneovim-19dab2ead2dfc49c24e004fcdbbef6948b7bde94.tar.bz2 rneovim-19dab2ead2dfc49c24e004fcdbbef6948b7bde94.zip |
Merge #20873 from justinmk/checkhealth
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/plugin/health_spec.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua index e5a60f5cb1..c970a03fcf 100644 --- a/test/functional/plugin/health_spec.lua +++ b/test/functional/plugin/health_spec.lua @@ -5,7 +5,7 @@ local Screen = require('test.functional.ui.screen') local clear = helpers.clear local curbuf_contents = helpers.curbuf_contents local command = helpers.command -local eq, neq = helpers.eq, helpers.neq +local eq, neq, matches = helpers.eq, helpers.neq, helpers.matches local getcompletion = helpers.funcs.getcompletion describe(':checkhealth', function() @@ -29,8 +29,7 @@ describe(':checkhealth', function() -- Do this after startup, otherwise it just breaks $VIMRUNTIME. command("let $VIM='zub'") command("checkhealth nvim") - eq("ERROR: $VIM is invalid: zub", - string.match(curbuf_contents(), "ERROR: $VIM .* zub")) + matches('ERROR: $VIM .* zub', curbuf_contents()) end) it('completions can be listed via getcompletion()', function() clear() |