Skip to content

Commit

Permalink
Format with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
uyha authored and L3MON4D3 committed Dec 1, 2022
1 parent f366841 commit bc9ba28
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/unit/fmt_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ local works = function(params)
-- fails if number- and string-keys are mixed ({1,2} works fine, {1, b=2} fails).
-- So we limit ourselves to just passing strings, which are then turned into tables
-- while load()ing the function.
local result = helpers.exec_lua(
string.format(
[[
local result = helpers.exec_lua(string.format(
[[
local args = %s
local mock_args = {}
Expand All @@ -35,11 +34,10 @@ local works = function(params)
end
return str_result
]],
params.args,
params.fmt,
params.opts
)
)
params.args,
params.fmt,
params.opts
))
assert.are.same(params.expected, result)
end)
end
Expand Down

0 comments on commit bc9ba28

Please # to comment.