lazy.nvim/tests/core/init_spec.lua

11 lines
356 B
Lua
Raw Permalink Normal View History

2024-06-26 17:11:11 +08:00
local Util = require("lazy.core.util")
describe("init", function()
it("has correct environment for tests", function()
2024-06-26 17:11:11 +08:00
for _, name in ipairs({ "config", "data", "cache", "state" }) do
local path = Util.norm(vim.fn.stdpath(name) --[[@as string]])
assert(path:find(".tests/" .. name, 1, true), path .. " not in .tests")
end
end)
end)