From 0754d1cb7b224ed1d51d116844b030a12abd52e4 Mon Sep 17 00:00:00 2001 From: Pedro Santi Binotto Date: Tue, 20 Aug 2024 16:15:23 -0300 Subject: [PATCH] add nil entries to unit test cases --- lua/harpoon/test/list_spec.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/harpoon/test/list_spec.lua b/lua/harpoon/test/list_spec.lua index 7adbbc3..79e1c01 100644 --- a/lua/harpoon/test/list_spec.lua +++ b/lua/harpoon/test/list_spec.lua @@ -22,11 +22,16 @@ describe("list", function() }) local list_config = Config.get_config(config, "foo") - local list = List.decode(list_config, "foo", { "foo:bar", "baz:qux" }) + local list = List.decode(list_config, "foo", { + "foo:bar", + nil, + [3] = "baz:qux", + }) local displayed = list:display() eq(displayed, { "foo---bar", + "", "baz---qux", }) end)