lazy.nvim/tests/core/init_spec.lua

12 lines
378 B
Lua
Raw Normal View History

2024-06-26 17:11:11 +08:00
---@module 'luassert'
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)