mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
test: test XDG paths for tests and added a test that checks if they are setup correctly
This commit is contained in:
parent
d46bc7795c
commit
ac9e5401dc
2 changed files with 11 additions and 0 deletions
7
tests/core/init_spec.lua
Normal file
7
tests/core/init_spec.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
describe("init", function()
|
||||
it("has correct environment for tests", function()
|
||||
for _, path in ipairs({ "config", "data", "cache", "state" }) do
|
||||
assert(vim.fn.stdpath(path):find(".tests/" .. path))
|
||||
end
|
||||
end)
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue