diff options
| author | William Boman <william@redwill.se> | 2025-05-02 03:52:10 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2025-05-02 03:57:07 +0200 |
| commit | 4da89f3ab04783da990f9bd40aaa36c22e59375b (patch) | |
| tree | bb672a1bd796a6adf3d04473cb66a3e90be00707 /tests/mason-core/installer/context_spec.lua | |
| parent | feat(ui): display purl information (diff) | |
| download | mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.gz mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.bz2 mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.lz mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.xz mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.tar.zst mason-4da89f3ab04783da990f9bd40aaa36c22e59375b.zip | |
refactor(registry): change lua registries to not instantiate Package themselves
Instead of having Lua registries instantiate package instances
themselves we now do it in the installer of Lua registry sources.
This aligns the behaviour of the Lua registry protocol with the other
registry protocols.
Diffstat (limited to 'tests/mason-core/installer/context_spec.lua')
| -rw-r--r-- | tests/mason-core/installer/context_spec.lua | 5 |
1 files changed, 0 insertions, 5 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") |
