diff options
author | kylo252 <[email protected]> | 2021-11-02 16:58:55 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-02 16:58:55 +0100 |
commit | 32ca5afa4ad21f1a616cc30323c272191e7548c1 (patch) | |
tree | 1d4d0a40330f426b51b8d62409d23869887bf7dd /tests/bootstrap_spec.lua | |
parent | e8693406babee724dd51293dc6dad10931dbef45 (diff) |
feat: better error handling for packer (#1883)
Diffstat (limited to 'tests/bootstrap_spec.lua')
-rw-r--r-- | tests/bootstrap_spec.lua | 8 |
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) |