test: test XDG paths for tests and added a test that checks if they are setup correctly

This commit is contained in:
Folke Lemaitre 2022-12-01 16:28:54 +01:00
parent d46bc7795c
commit ac9e5401dc
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 11 additions and 0 deletions

7
tests/core/init_spec.lua Normal file
View 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)