test: fixed tests for `Plugin.opts`

This commit is contained in:
Folke Lemaitre 2023-01-12 13:13:45 +01:00
parent 784bb3c100
commit 3f3d9df324
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ describe("plugin opts", function()
for _, test in ipairs(tests) do for _, test in ipairs(tests) do
local spec = Plugin.Spec.new(test.spec) local spec = Plugin.Spec.new(test.spec)
assert(spec.plugins.foo) assert(spec.plugins.foo)
assert.same(test.opts, Loader.opts(spec.plugins.foo)) assert.same(test.opts, Plugin.values(spec.plugins.foo, "opts"))
end end
end) end)
end) end)