Skip to content

Commit

Permalink
Format with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 authored and github-actions[bot] committed May 16, 2024
1 parent 5361676 commit 78296bf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions tests/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,25 @@ function M.scratch_mkdir(scratch_rel)
os.execute(('mkdir -p "%s/%s"'):format(scratchdir_path, scratch_rel))
end
function M.scratch_mv(scratch_from, scratch_to)
os.execute(('mv "%s/%s" "%s/%s"'):format(scratchdir_path, scratch_from, scratchdir_path, scratch_to))
os.execute(
('mv "%s/%s" "%s/%s"'):format(
scratchdir_path,
scratch_from,
scratchdir_path,
scratch_to
)
)
end
-- mv -T
function M.scratch_mv_T(scratch_from, scratch_to)
os.execute(('mv -T "%s/%s" "%s/%s"'):format(scratchdir_path, scratch_from, scratchdir_path, scratch_to))
os.execute(
('mv -T "%s/%s" "%s/%s"'):format(
scratchdir_path,
scratch_from,
scratchdir_path,
scratch_to
)
)
end
function M.scratch_touch(scratch_rel)
os.execute(('touch "%s/%s"'):format(scratchdir_path, scratch_rel))
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/fswatcher_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ describe("fs_events", function()
["a/a"] = 1,
["a/b"] = 1,
["a/c/e"] = 1,
["a/d/e"] = 1
}
["a/d/e"] = 1,
},
}, exec_lua([[return {changed, seen}]]))
end)

Expand Down

0 comments on commit 78296bf

Please sign in to comment.