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