diff options
| author | William Boman <william@redwill.se> | 2025-05-06 02:57:26 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2025-05-06 02:57:26 +0200 |
| commit | f74983e782b7394f5737df99f8823e196a23291d (patch) | |
| tree | 15ee15a22ad4e8dff13c050a361c99f08d831212 /tests/mason-core/installer/InstallRunner_spec.lua | |
| parent | refactor(registry): change lua registries to not instantiate Package themselves (diff) | |
| download | mason-f74983e782b7394f5737df99f8823e196a23291d.tar mason-f74983e782b7394f5737df99f8823e196a23291d.tar.gz mason-f74983e782b7394f5737df99f8823e196a23291d.tar.bz2 mason-f74983e782b7394f5737df99f8823e196a23291d.tar.lz mason-f74983e782b7394f5737df99f8823e196a23291d.tar.xz mason-f74983e782b7394f5737df99f8823e196a23291d.tar.zst mason-f74983e782b7394f5737df99f8823e196a23291d.zip | |
feat: associate package instances with registry source and record it in receipt
Diffstat (limited to 'tests/mason-core/installer/InstallRunner_spec.lua')
| -rw-r--r-- | tests/mason-core/installer/InstallRunner_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/mason-core/installer/InstallRunner_spec.lua b/tests/mason-core/installer/InstallRunner_spec.lua index 0ff7a40f..48abb77a 100644 --- a/tests/mason-core/installer/InstallRunner_spec.lua +++ b/tests/mason-core/installer/InstallRunner_spec.lua @@ -268,6 +268,7 @@ describe("InstallRunner ::", function() test_helpers.sync_runner_execute(runner, {}) local receipt_file = location:package "dummy/mason-receipt.json" + assert.is_true(fs.sync.file_exists(receipt_file)) assert.is_true(match.tbl_containing { name = "dummy", @@ -277,6 +278,10 @@ describe("InstallRunner ::", function() completion_time = match.is_number(), start_time = match.is_number(), }, + registry = match.same { + proto = "lua", + mod = "dummy-registry.index", + }, source = match.same { id = "pkg:mason/dummy@1.0.0", type = "registry+v1", |
