aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-09-05 19:34:00 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-09-05 19:34:00 -0400
commit522b885a0db76e43f5b8483077d71afa0489188d (patch)
tree0de109fb9dfdfc3cc8ee075490fd8969c3c381ec /test
parent6127eaef0534d1ff5b96b8ed15854b4bedf8e9b4 (diff)
parent3c24704ac85e8f8e337d9a4a887ffccf744501b9 (diff)
downloadrneovim-522b885a0db76e43f5b8483077d71afa0489188d.tar.gz
rneovim-522b885a0db76e43f5b8483077d71afa0489188d.tar.bz2
rneovim-522b885a0db76e43f5b8483077d71afa0489188d.zip
Merge #5295 'health.vim'
Diffstat (limited to 'test')
-rw-r--r--test/functional/plugin/health_spec.lua20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua
index a9665cd751..4bcaab009f 100644
--- a/test/functional/plugin/health_spec.lua
+++ b/test/functional/plugin/health_spec.lua
@@ -34,9 +34,9 @@ describe('health.vim', function()
## Baz
- WARNING: Zim
- - SUGGESTIONS:
- - suggestion 1
- - suggestion 2]]),
+ - SUGGESTIONS:
+ - suggestion 1
+ - suggestion 2]]),
result)
end)
@@ -45,9 +45,9 @@ describe('health.vim', function()
it("concatenates multiple reports", function()
helpers.execute("CheckHealth success1 success2")
helpers.expect([[
+
health#success1#check
================================================================================
-
## report 1
- SUCCESS: everything is fine
@@ -56,26 +56,30 @@ describe('health.vim', function()
health#success2#check
================================================================================
-
## another 1
- - SUCCESS: ok]])
+ - SUCCESS: ok
+ ]])
end)
it("gracefully handles broken healthcheck", function()
helpers.execute("CheckHealth broken")
helpers.expect([[
+
health#broken#check
================================================================================
- ERROR: Failed to run healthcheck for "broken" plugin. Exception:
- caused an error]])
+ caused an error
+ ]])
end)
it("gracefully handles invalid healthcheck", function()
helpers.execute("CheckHealth non_existent_healthcheck")
helpers.expect([[
+
health#non_existent_healthcheck#check
================================================================================
- - ERROR: No healthcheck found for "non_existent_healthcheck" plugin.]])
+ - ERROR: No healthcheck found for "non_existent_healthcheck" plugin.
+ ]])
end)
end)
end)