From 1ea2eaefa66fdc5a2a7e7b9309c11291cca0a020 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 16 Oct 2023 15:11:01 +0200 Subject: [PATCH] test: fixed tests for plugin spec --- tests/core/plugin_spec.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/core/plugin_spec.lua b/tests/core/plugin_spec.lua index cae8542..6df2e81 100644 --- a/tests/core/plugin_spec.lua +++ b/tests/core/plugin_spec.lua @@ -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"))