Skip to content

Commit

Permalink
add nil entries to unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBinotto authored Aug 20, 2024
1 parent 2ee0956 commit 0754d1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/harpoon/test/list_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0754d1c

Please sign in to comment.