diff options
| author | William Boman <william@redwill.se> | 2023-04-16 03:22:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-16 03:22:37 +0200 |
| commit | 5b25e13f905b26cd4ab2be64fec072c18a943220 (patch) | |
| tree | ca2b9f51b21ea0325cfaa4f75db2620d250e4cfb /tests | |
| parent | chore: migrate julia-lsp (#1217) (diff) | |
| download | mason-5b25e13f905b26cd4ab2be64fec072c18a943220.tar mason-5b25e13f905b26cd4ab2be64fec072c18a943220.tar.gz mason-5b25e13f905b26cd4ab2be64fec072c18a943220.tar.bz2 mason-5b25e13f905b26cd4ab2be64fec072c18a943220.tar.lz mason-5b25e13f905b26cd4ab2be64fec072c18a943220.tar.xz mason-5b25e13f905b26cd4ab2be64fec072c18a943220.tar.zst mason-5b25e13f905b26cd4ab2be64fec072c18a943220.zip | |
feat(github): add $MASON_VERSION to build context (#1218)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/mason-core/installer/registry/providers/github_spec.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/mason-core/installer/registry/providers/github_spec.lua b/tests/mason-core/installer/registry/providers/github_spec.lua index c70e0b10..58917f4d 100644 --- a/tests/mason-core/installer/registry/providers/github_spec.lua +++ b/tests/mason-core/installer/registry/providers/github_spec.lua @@ -401,13 +401,19 @@ describe("github provider :: installing", function() build = { run = [[npm install && npm run compile]], }, - }) + }, purl { version = "2023-03-09" }) end) assert.is_true(result:is_success()) assert.spy(std.clone).was_called(1) assert.spy(std.clone).was_called_with("namespace/name", { rev = "2023-03-09" }) assert.spy(ctx.spawn.bash).was_called(1) + assert.spy(ctx.spawn.bash).was_called_with(match.tbl_containing { + on_spawn = match.is_function(), + env = match.same { + MASON_VERSION = "2023-03-09", + }, + }) assert.spy(uv.write).was_called(2) assert.spy(uv.write).was_called_with(stdin, "set -euxo pipefail;\n") assert.spy(uv.write).was_called_with(stdin, "npm install && npm run compile") |
