summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-11-02 16:58:55 +0100
committerGitHub <[email protected]>2021-11-02 16:58:55 +0100
commit32ca5afa4ad21f1a616cc30323c272191e7548c1 (patch)
tree1d4d0a40330f426b51b8d62409d23869887bf7dd /tests
parente8693406babee724dd51293dc6dad10931dbef45 (diff)
feat: better error handling for packer (#1883)
Diffstat (limited to 'tests')
-rw-r--r--tests/bootstrap_spec.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bootstrap_spec.lua b/tests/bootstrap_spec.lua
index d92e213d..c86d22d4 100644
--- a/tests/bootstrap_spec.lua
+++ b/tests/bootstrap_spec.lua
@@ -25,4 +25,12 @@ a.describe("initial start", function()
a.it("should be able to run treesitter without errors", function()
assert.truthy(vim.treesitter.highlighter.active)
end)
+
+ a.it("should be able to pass basic checkhealth without errors", function()
+ vim.cmd "checkhealth nvim"
+ local errmsg = vim.fn.eval "v:errmsg"
+ local exception = vim.fn.eval "v:exception"
+ assert.equal("", errmsg) -- v:errmsg was not updated.
+ assert.equal("", exception)
+ end)
end)