mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-13 18:35:49 +00:00
test: fixed tests
This commit is contained in:
parent
fbb0bea2db
commit
045f23eb35
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ describe("plugin spec opt", function()
|
||||||
local spec = Plugin.Spec.new(vim.deepcopy(test))
|
local spec = Plugin.Spec.new(vim.deepcopy(test))
|
||||||
assert(#spec.notifs == 0)
|
assert(#spec.notifs == 0)
|
||||||
Config.plugins = spec.plugins
|
Config.plugins = spec.plugins
|
||||||
|
Config.spec = spec
|
||||||
Plugin.update_state()
|
Plugin.update_state()
|
||||||
assert(vim.tbl_count(spec.plugins) == 3)
|
assert(vim.tbl_count(spec.plugins) == 3)
|
||||||
assert(#spec.plugins.bar.dependencies == 2)
|
assert(#spec.plugins.bar.dependencies == 2)
|
||||||
|
|
Loading…
Add table
Reference in a new issue