refactor: golf core module
This commit is contained in:
4 files changed
+13
-32
No files matched your search
+1
-5
@@ -5,12 +5,9 @@ local eq = MiniTest.expect.equality
|
||||
|
||||
T["setup"] = MiniTest.new_set()
|
||||
|
||||
T["setup"]["creates augroups"] = function()
|
||||
-- plugin/ auto-loaded via minimal_init, so augroups should exist
|
||||
T["setup"]["creates augroup"] = function()
|
||||
local groups = vim.api.nvim_get_autocmds({ group = "tiny-lightbulb" })
|
||||
eq(#groups > 0, true)
|
||||
local clear_groups = vim.api.nvim_get_autocmds({ group = "tiny-lightbulb-clear" })
|
||||
eq(#clear_groups > 0, true)
|
||||
end
|
||||
|
||||
T["setup"]["is idempotent"] = function()
|
||||
@@ -21,7 +18,6 @@ T["setup"]["is idempotent"] = function()
|
||||
end
|
||||
|
||||
T["setup"]["respects custom sign"] = function()
|
||||
-- Just verify it doesn't error with custom opts
|
||||
require("tiny-lightbulb").setup({ sign = "CA" })
|
||||
local groups = vim.api.nvim_get_autocmds({ group = "tiny-lightbulb" })
|
||||
eq(#groups > 0, true)
|
||||
|
||||
Reference in new issue
Block a user