Files
swaits fb9a52eae8
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s
feat: initial release
2026-04-09 15:40:48 -06:00

25 lines
663 B
Lua

local T = MiniTest.new_set()
local eq = MiniTest.expect.equality
T["setup"] = MiniTest.new_set()
T["setup"]["creates augroup"] = function()
local groups = vim.api.nvim_get_autocmds({ group = "tiny-rooter" })
eq(#groups > 0, true)
end
T["setup"]["is idempotent"] = function()
require("tiny-rooter").setup()
require("tiny-rooter").setup()
local groups = vim.api.nvim_get_autocmds({ group = "tiny-rooter" })
eq(#groups > 0, true)
end
T["setup"]["respects custom markers"] = function()
require("tiny-rooter").setup({ markers = { ".git" } })
local groups = vim.api.nvim_get_autocmds({ group = "tiny-rooter" })
eq(#groups > 0, true)
end
return T