From ae208dc380808ff1aef39929a0e897e881571d43 Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 13 Oct 2023 21:14:29 +0200 Subject: refactor: standardize constructors and improve inheritance construction --- lua/mason-test/helpers.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/mason-test') diff --git a/lua/mason-test/helpers.lua b/lua/mason-test/helpers.lua index 149589bf..2348e9df 100644 --- a/lua/mason-test/helpers.lua +++ b/lua/mason-test/helpers.lua @@ -10,9 +10,9 @@ local M = {} ---@param opts? { install_opts?: PackageInstallOpts, package?: string } function M.create_context(opts) local pkg = registry.get_package(opts and opts.package or "dummy") - local handle = InstallHandle.new(pkg) + local handle = InstallHandle:new(pkg) local location = InstallLocation.global() - local context = InstallContext.new(handle, location, opts and opts.install_opts or {}) + local context = InstallContext:new(handle, location, opts and opts.install_opts or {}) context.spawn = setmetatable({}, { __index = function(s, cmd) s[cmd] = spy.new(function() -- cgit v1.2.3-70-g09d2