mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix: make sure Plugin.opt is always a boolean
This commit is contained in:
parent
812bb3c8b7
commit
ca78dd77ac
2 changed files with 2 additions and 1 deletions
|
@ -30,12 +30,12 @@ end)
|
|||
|
||||
describe("plugin spec opt", function()
|
||||
it("handles dependencies", function()
|
||||
Config.options.opt = false
|
||||
local tests = {
|
||||
{ "foo/bar", dependencies = { "foo/dep1", "foo/dep2" } },
|
||||
{ "foo/bar", dependencies = { { "foo/dep1" }, "foo/dep2" } },
|
||||
{ { { "foo/bar", dependencies = { { "foo/dep1" }, "foo/dep2" } } } },
|
||||
}
|
||||
Config.options.opt = false
|
||||
for _, test in ipairs(tests) do
|
||||
local spec = Plugin.Spec.new(test)
|
||||
Plugin.update_state({ plugins = spec.plugins })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue