aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2025-02-20 23:50:27 +0100
committerWilliam Boman <william@redwill.se>2025-02-20 23:50:27 +0100
commit2fca78884b126960b41dd5b1b7e35b822a568e5b (patch)
tree933d94cd85012384f7753e17712588b2807ab6d5 /tests
parentv2.0.0-rc.1 (diff)
downloadmason-2fca78884b126960b41dd5b1b7e35b822a568e5b.tar
mason-2fca78884b126960b41dd5b1b7e35b822a568e5b.tar.gz
mason-2fca78884b126960b41dd5b1b7e35b822a568e5b.tar.bz2
mason-2fca78884b126960b41dd5b1b7e35b822a568e5b.tar.lz
mason-2fca78884b126960b41dd5b1b7e35b822a568e5b.tar.xz
mason-2fca78884b126960b41dd5b1b7e35b822a568e5b.tar.zst
mason-2fca78884b126960b41dd5b1b7e35b822a568e5b.zip
style: fix stylua and selene errors
Diffstat (limited to 'tests')
-rw-r--r--tests/mason/api/command_spec.lua12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/mason/api/command_spec.lua b/tests/mason/api/command_spec.lua
index ba34cdf3..6945340d 100644
--- a/tests/mason/api/command_spec.lua
+++ b/tests/mason/api/command_spec.lua
@@ -25,9 +25,7 @@ describe(":MasonInstall", function()
spy.on(Pkg, "install")
api.MasonInstall { "dummy@1.0.0", "dummy2" }
assert.spy(Pkg.install).was_called(2)
- assert
- .spy(Pkg.install)
- .was_called_with(match.is_ref(dummy), { version = "1.0.0" })
+ assert.spy(Pkg.install).was_called_with(match.is_ref(dummy), { version = "1.0.0" })
assert.spy(Pkg.install).was_called_with(match.is_ref(dummy2), match.tbl_containing { version = match.is_nil() })
end)
@@ -37,12 +35,8 @@ describe(":MasonInstall", function()
spy.on(Pkg, "install")
vim.cmd [[MasonInstall --debug dummy dummy2]]
assert.spy(Pkg.install).was_called(2)
- assert
- .spy(Pkg.install)
- .was_called_with(match.is_ref(dummy), { version = nil, debug = true })
- assert
- .spy(Pkg.install)
- .was_called_with(match.is_ref(dummy2), { version = nil, debug = true })
+ assert.spy(Pkg.install).was_called_with(match.is_ref(dummy), { version = nil, debug = true })
+ assert.spy(Pkg.install).was_called_with(match.is_ref(dummy2), { version = nil, debug = true })
end)
it("should open the UI window", function()