From 59b9d3c2b8545b72f6d743991cfe24a57f1d06e0 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 18 Jun 2024 22:09:49 +0200 Subject: [PATCH] test: fix spec tests --- tests/core/plugin_spec.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/core/plugin_spec.lua b/tests/core/plugin_spec.lua index c15505f..548b5f5 100644 --- a/tests/core/plugin_spec.lua +++ b/tests/core/plugin_spec.lua @@ -52,7 +52,10 @@ describe("plugin spec url/name", function() local spec = Plugin.Spec.new(test[1]) local plugins = vim.tbl_values(spec.plugins) plugins[1]._ = {} - assert(#spec.notifs == 0) + local notifs = vim.tbl_filter(function(notif) + return notif.level > 3 + end, spec.notifs) + assert(#notifs == 0, vim.inspect(spec.notifs)) assert.equal(1, #plugins) plugins[1]._.super = nil assert.same(test[2], plugins[1])