chore: style and lint

This commit is contained in:
Michael Paulson 2023-12-01 13:45:22 -07:00
parent 23fb0002cf
commit 689778b3aa
2 changed files with 15 additions and 12 deletions

View File

@ -94,8 +94,10 @@ describe("harpoon", function()
eq(harpoon.ui.win_id, nil)
end)
it("closing toggle_quick_menu with save_on_toggle should save contents", function()
harpoon:setup({ settings = { save_on_toggle = true }})
it(
"closing toggle_quick_menu with save_on_toggle should save contents",
function()
harpoon:setup({ settings = { save_on_toggle = true } })
local list = harpoon:list()
local created_files = utils.fill_list_with_files(3, list)
@ -106,5 +108,6 @@ describe("harpoon", function()
eq(list:length(), 2)
eq(list:display(), created_files)
end)
end
)
end)

View File

@ -71,7 +71,7 @@ end
function M.fill_list_with_files(count, list)
local files = {}
for i = 1, count do
for _ = 1, count do
local name = os.tmpname()
table.insert(files, name)
M.create_file(name, { "test" })