aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers/lua/test_helpers.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2025-02-19 14:46:52 +0100
committerWilliam Boman <william@redwill.se>2025-02-19 14:47:55 +0100
commita8f5e511c686b6e8eec7bc57caf4d9d710005bcf (patch)
treeabca0182302608d93d45bb140b0ef8fee2e738de /tests/helpers/lua/test_helpers.lua
parentchore(main): release 1.32.0 (#479) (diff)
downloadmason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.gz
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.bz2
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.lz
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.xz
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.tar.zst
mason-lspconfig-a8f5e511c686b6e8eec7bc57caf4d9d710005bcf.zip
feat!: update usage of deprecated mason.nvim APIs
Diffstat (limited to 'tests/helpers/lua/test_helpers.lua')
-rw-r--r--tests/helpers/lua/test_helpers.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/helpers/lua/test_helpers.lua b/tests/helpers/lua/test_helpers.lua
index 15ccd5e..0ae3158 100644
--- a/tests/helpers/lua/test_helpers.lua
+++ b/tests/helpers/lua/test_helpers.lua
@@ -1,11 +1,7 @@
---@diagnostic disable: lowercase-global
-local spy = require "luassert.spy"
local util = require "luassert.util"
-local InstallContext = require "mason-core.installer.context"
-local InstallHandle = require "mason-core.installer.handle"
local a = require "mason-core.async"
-local registry = require "mason-registry"
function async_test(suspend_fn)
return function()
@@ -55,21 +51,3 @@ mockx = {
return mock
end,
}
-
----@param package_name string
-function InstallHandleGenerator(package_name)
- return InstallHandle.new(registry.get_package(package_name))
-end
-
----@param handle InstallHandle
----@param opts InstallContextOpts | nil
-function InstallContextGenerator(handle, opts)
- local context = InstallContext.new(handle, opts or {})
- context.spawn = setmetatable({}, {
- __index = function(s, cmd)
- s[cmd] = spy.new(mockx.just_runs())
- return s[cmd]
- end,
- })
- return context
-end