aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mason-core')
-rw-r--r--tests/mason-core/installer/context_spec.lua5
-rw-r--r--tests/mason-core/installer/linker_spec.lua4
-rw-r--r--tests/mason-core/package/package_spec.lua4
3 files changed, 2 insertions, 11 deletions
diff --git a/tests/mason-core/installer/context_spec.lua b/tests/mason-core/installer/context_spec.lua
index ad469e08..92ef1c49 100644
--- a/tests/mason-core/installer/context_spec.lua
+++ b/tests/mason-core/installer/context_spec.lua
@@ -94,7 +94,6 @@ cmd.exe /C echo %GREETING% %*]]
it("should write Node exec wrapper", function()
local js_rel_path = path.concat { "some", "obscure", "path", "server.js" }
- local dummy = registry.get_package "dummy"
local ctx = test_helpers.create_context()
stub(ctx, "write_shell_exec_wrapper")
stub(ctx.fs, "file_exists")
@@ -112,7 +111,6 @@ cmd.exe /C echo %GREETING% %*]]
it("should write Ruby exec wrapper", function()
local js_rel_path = path.concat { "some", "obscure", "path", "server.js" }
- local dummy = registry.get_package "dummy"
local ctx = test_helpers.create_context()
stub(ctx, "write_shell_exec_wrapper")
stub(ctx.fs, "file_exists")
@@ -147,7 +145,6 @@ cmd.exe /C echo %GREETING% %*]]
end)
it("should write Python exec wrapper", function()
- local dummy = registry.get_package "dummy"
local ctx = test_helpers.create_context()
stub(ctx.cwd, "get")
ctx.cwd.get.returns "/tmp/placeholder"
@@ -183,7 +180,6 @@ cmd.exe /C echo %GREETING% %*]]
end)
it("should write exec wrapper", function()
- local dummy = registry.get_package "dummy"
local exec_rel_path = path.concat { "obscure", "path", "to", "server" }
local ctx = test_helpers.create_context()
stub(ctx, "write_shell_exec_wrapper")
@@ -219,7 +215,6 @@ cmd.exe /C echo %GREETING% %*]]
it("should write PHP exec wrapper", function()
local php_rel_path = path.concat { "some", "obscure", "path", "cli.php" }
- local dummy = registry.get_package "dummy"
local ctx = test_helpers.create_context()
stub(ctx, "write_shell_exec_wrapper")
stub(ctx.fs, "file_exists")
diff --git a/tests/mason-core/installer/linker_spec.lua b/tests/mason-core/installer/linker_spec.lua
index 2177f6a3..6bf63a14 100644
--- a/tests/mason-core/installer/linker_spec.lua
+++ b/tests/mason-core/installer/linker_spec.lua
@@ -40,7 +40,6 @@ describe("linker", function()
end)
it("should symlink executable on Unix", function()
- local dummy = registry.get_package "dummy"
local ctx = test_helpers.create_context()
stub(fs.async, "file_exists")
@@ -70,7 +69,6 @@ describe("linker", function()
end)
it("should write executable wrapper on Windows", function()
- local dummy = registry.get_package "dummy"
local ctx = test_helpers.create_context()
platform.is.darwin = false
@@ -110,7 +108,6 @@ describe("linker", function()
end)
it("should symlink share files", function()
- local dummy = registry.get_package "dummy"
local ctx = test_helpers.create_context()
stub(fs.async, "mkdirp")
@@ -150,7 +147,6 @@ describe("linker", function()
end)
it("should copy share files on Windows", function()
- local dummy = registry.get_package "dummy"
local ctx = test_helpers.create_context()
platform.is.darwin = false
diff --git a/tests/mason-core/package/package_spec.lua b/tests/mason-core/package/package_spec.lua
index 5f69ea4e..8d1929d8 100644
--- a/tests/mason-core/package/package_spec.lua
+++ b/tests/mason-core/package/package_spec.lua
@@ -42,8 +42,8 @@ describe("Package ::", function()
name = "Package name",
description = "Package description",
homepage = "https://example.com",
- categories = { Pkg.Cat.LSP },
- languages = { Pkg.Lang.Rust },
+ categories = { "LSP" },
+ languages = { "Rust" },
licenses = {},
source = {
id = "pkg:mason/package@1",