aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core/installer/linker_spec.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-02-26 07:57:42 +0100
committerGitHub <noreply@github.com>2023-02-26 07:57:42 +0100
commit2e83e412d877a7e6daf04b2b6359521f6fb8c20e (patch)
tree5c9488569a0e8b9f2aa3d492c666aed4fb55b194 /tests/mason-core/installer/linker_spec.lua
parentchore: autogenerate (#1028) (diff)
downloadmason-2e83e412d877a7e6daf04b2b6359521f6fb8c20e.tar
mason-2e83e412d877a7e6daf04b2b6359521f6fb8c20e.tar.gz
mason-2e83e412d877a7e6daf04b2b6359521f6fb8c20e.tar.bz2
mason-2e83e412d877a7e6daf04b2b6359521f6fb8c20e.tar.lz
mason-2e83e412d877a7e6daf04b2b6359521f6fb8c20e.tar.xz
mason-2e83e412d877a7e6daf04b2b6359521f6fb8c20e.tar.zst
mason-2e83e412d877a7e6daf04b2b6359521f6fb8c20e.zip
refactor: simplify linker & receipt writing (#1033)
Diffstat (limited to 'tests/mason-core/installer/linker_spec.lua')
-rw-r--r--tests/mason-core/installer/linker_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mason-core/installer/linker_spec.lua b/tests/mason-core/installer/linker_spec.lua
index 57dba607..cf8260c6 100644
--- a/tests/mason-core/installer/linker_spec.lua
+++ b/tests/mason-core/installer/linker_spec.lua
@@ -129,8 +129,8 @@ describe("linker", function()
local handle = InstallHandleGenerator "dummy"
local ctx = InstallContextGenerator(handle)
- ctx:link_share("nested/path/share-file", path.concat { "nested", "path", "to", "share-file" })
- ctx:link_share("share-file", "share-file")
+ ctx.links.share["nested/path/share-file"] = path.concat { "nested", "path", "to", "share-file" }
+ ctx.links.share["share-file"] = "share-file"
assert.is_true(linker.link(ctx):is_success())
assert.spy(fs.async.write_file).was_called(0)