mirror of https://github.com/folke/lazy.nvim.git
test: fixed tests for plugin spec
This commit is contained in:
parent
1cfd6d1f36
commit
1ea2eaefa6
|
@ -237,6 +237,7 @@ describe("plugin spec opt", function()
|
|||
local spec = Plugin.Spec.new(test)
|
||||
assert(#spec.notifs == 0)
|
||||
assert(vim.tbl_count(spec.plugins) == 1)
|
||||
Plugin.values(spec.plugins.bar, "event", true)
|
||||
assert(type(spec.plugins.bar.event) == "table")
|
||||
assert(#spec.plugins.bar.event == 2)
|
||||
assert(vim.tbl_contains(spec.plugins.bar.event, "mod1"))
|
||||
|
@ -299,6 +300,7 @@ describe("plugin spec opt", function()
|
|||
local spec = Plugin.Spec.new(test)
|
||||
assert(#spec.notifs == 0)
|
||||
assert(vim.tbl_count(spec.plugins) == 1)
|
||||
Plugin.values(spec.plugins.bar, "event", true)
|
||||
assert(type(spec.plugins.bar.event) == "table")
|
||||
assert(#spec.plugins.bar.event == 2)
|
||||
assert(vim.tbl_contains(spec.plugins.bar.event, "mod1"))
|
||||
|
|
Loading…
Reference in New Issue