Skip to content

Commit

Permalink
fix(tests): restore default fallback value for xdg
Browse files Browse the repository at this point in the history
  • Loading branch information
kylo252 committed Apr 20, 2022
1 parent e0f100c commit 3ec000d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/specs/bootstrap_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
local a = require "plenary.async_lib.tests"
local uv = vim.loop
local home_dir = uv.os_homedir()

a.describe("initial start", function()
local lvim_config_path = get_config_dir()
Expand All @@ -17,7 +19,7 @@ a.describe("initial start", function()
end)

a.it("should be to retrieve default neovim directories", function()
local xdg_config = os.getenv "XDG_CONFIG_HOME"
local xdg_config = os.getenv "XDG_CONFIG_HOME" or home_dir .. "./config"
assert.equal(join_paths(xdg_config, "nvim"), vim.call("stdpath", "config"))
end)

Expand Down

0 comments on commit 3ec000d

Please sign in to comment.