diff options
author | kylo252 <[email protected]> | 2022-01-02 14:53:01 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-02 14:53:01 +0100 |
commit | b3cfd165fbca4c8b595ed577027a5171e33a00e9 (patch) | |
tree | bfc6526edf613b294733d46ff823d69d6e9a58df /tests/bootstrap_spec.lua | |
parent | 73bf039c6333ba9cb3af93437b26c41e14566c47 (diff) |
refactor(test): cleanup test utilities (#2132)
Diffstat (limited to 'tests/bootstrap_spec.lua')
-rw-r--r-- | tests/bootstrap_spec.lua | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/bootstrap_spec.lua b/tests/bootstrap_spec.lua deleted file mode 100644 index c86d22d4..00000000 --- a/tests/bootstrap_spec.lua +++ /dev/null @@ -1,36 +0,0 @@ -local a = require "plenary.async_lib.tests" - -a.describe("initial start", function() - local uv = vim.loop - local home_dir = uv.os_homedir() - local lvim_config_path = get_config_dir() or home_dir .. "/.config/lvim" - local lvim_runtime_path = get_runtime_dir() or home_dir .. "/.local/share/lunarvim" - - a.it("shoud be able to detect test environment", function() - assert.truthy(os.getenv "LVIM_TEST_ENV") - assert.falsy(package.loaded["lvim.impatient"]) - end) - - a.it("should not be reading default neovim directories in the home directoies", function() - local rtp_list = vim.opt.rtp:get() - assert.falsy(vim.tbl_contains(rtp_list, vim.fn.stdpath "config")) - end) - - a.it("should be able to read lunarvim directories", function() - local rtp_list = vim.opt.rtp:get() - assert.truthy(vim.tbl_contains(rtp_list, lvim_runtime_path .. "/lvim")) - assert.truthy(vim.tbl_contains(rtp_list, lvim_config_path)) - end) - - 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) |