test: fixed tests

This commit is contained in:
Folke Lemaitre 2023-07-06 15:38:21 +02:00
parent fbb0bea2db
commit 045f23eb35
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ describe("plugin spec opt", function()
local spec = Plugin.Spec.new(vim.deepcopy(test))
assert(#spec.notifs == 0)
Config.plugins = spec.plugins
Config.spec = spec
Plugin.update_state()
assert(vim.tbl_count(spec.plugins) == 3)
assert(#spec.plugins.bar.dependencies == 2)