aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-02-11 19:53:27 +0100
committerGitHub <noreply@github.com>2023-02-11 19:53:27 +0100
commitf17a4e473c4970af0e476d6ab4d41988a034c3bb (patch)
treedb59ac4400847799cd4b0e85df5d546304ed497d /tests
parentchore: update generated code (#980) (diff)
downloadmason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.gz
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.bz2
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.lz
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.xz
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.zst
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.zip
refactor(api): %s,\v(api/)repo,\1github (#981)
Diffstat (limited to 'tests')
-rw-r--r--tests/mason-registry/api_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mason-registry/api_spec.lua b/tests/mason-registry/api_spec.lua
index 0027e695..18e359b7 100644
--- a/tests/mason-registry/api_spec.lua
+++ b/tests/mason-registry/api_spec.lua
@@ -43,10 +43,10 @@ describe("mason-registry API", function()
it("should interpolate path parameters", function()
fetch.returns(Result.success [[{}]])
- local result = api.repo.releases.latest { repo = "myrepo/name" }
+ local result = api.github.releases.latest { repo = "myrepo/name" }
assert.is_true(result:is_success())
assert.spy(fetch).was_called(1)
- assert.spy(fetch).was_called_with(match.is_match "/api/repo/myrepo/name/releases/latest$", match.is_table())
+ assert.spy(fetch).was_called_with(match.is_match "/api/github/myrepo/name/releases/latest$", match.is_table())
end)
end)