feat(spec): spec merging now properly works with Plugin.enabled

This commit is contained in:
Folke Lemaitre 2023-01-04 10:36:51 +01:00
parent bce0c6e327
commit 81cb352fe6
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 54 additions and 20 deletions

View file

@ -260,6 +260,7 @@ describe("plugin spec opt", function()
}
for test, ret in pairs(tests) do
local spec = Plugin.Spec.new(test)
spec:fix_disabled()
assert(#spec.notifs == 0)
if ret then
assert(spec.plugins.bar)