mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 10:00:29 +00:00
chore: style and lint
This commit is contained in:
parent
23fb0002cf
commit
689778b3aa
@ -94,8 +94,10 @@ describe("harpoon", function()
|
|||||||
eq(harpoon.ui.win_id, nil)
|
eq(harpoon.ui.win_id, nil)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it("closing toggle_quick_menu with save_on_toggle should save contents", function()
|
it(
|
||||||
harpoon:setup({ settings = { save_on_toggle = true }})
|
"closing toggle_quick_menu with save_on_toggle should save contents",
|
||||||
|
function()
|
||||||
|
harpoon:setup({ settings = { save_on_toggle = true } })
|
||||||
local list = harpoon:list()
|
local list = harpoon:list()
|
||||||
local created_files = utils.fill_list_with_files(3, list)
|
local created_files = utils.fill_list_with_files(3, list)
|
||||||
|
|
||||||
@ -106,5 +108,6 @@ describe("harpoon", function()
|
|||||||
|
|
||||||
eq(list:length(), 2)
|
eq(list:length(), 2)
|
||||||
eq(list:display(), created_files)
|
eq(list:display(), created_files)
|
||||||
end)
|
end
|
||||||
|
)
|
||||||
end)
|
end)
|
||||||
|
@ -71,7 +71,7 @@ end
|
|||||||
function M.fill_list_with_files(count, list)
|
function M.fill_list_with_files(count, list)
|
||||||
local files = {}
|
local files = {}
|
||||||
|
|
||||||
for i = 1, count do
|
for _ = 1, count do
|
||||||
local name = os.tmpname()
|
local name = os.tmpname()
|
||||||
table.insert(files, name)
|
table.insert(files, name)
|
||||||
M.create_file(name, { "test" })
|
M.create_file(name, { "test" })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user