aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-02-19 22:54:29 +0100
committerGitHub <noreply@github.com>2023-02-19 22:54:29 +0100
commit3e5c8e1777e3ec4062306fcb1bb131e1bca2adfe (patch)
treea37c7fd00b68f4207dfd20046b6bff29f5885b5a /tests
parentchore: autogenerate (#1007) (diff)
downloadmason-3e5c8e1777e3ec4062306fcb1bb131e1bca2adfe.tar
mason-3e5c8e1777e3ec4062306fcb1bb131e1bca2adfe.tar.gz
mason-3e5c8e1777e3ec4062306fcb1bb131e1bca2adfe.tar.bz2
mason-3e5c8e1777e3ec4062306fcb1bb131e1bca2adfe.tar.lz
mason-3e5c8e1777e3ec4062306fcb1bb131e1bca2adfe.tar.xz
mason-3e5c8e1777e3ec4062306fcb1bb131e1bca2adfe.tar.zst
mason-3e5c8e1777e3ec4062306fcb1bb131e1bca2adfe.zip
feat(providers): add more endpoints (#1013)
Diffstat (limited to 'tests')
-rw-r--r--tests/mason-registry/api_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mason-registry/api_spec.lua b/tests/mason-registry/api_spec.lua
index 18e359b7..548db78b 100644
--- a/tests/mason-registry/api_spec.lua
+++ b/tests/mason-registry/api_spec.lua
@@ -49,4 +49,8 @@ describe("mason-registry API", function()
assert.spy(fetch).was_called(1)
assert.spy(fetch).was_called_with(match.is_match "/api/github/myrepo/name/releases/latest$", match.is_table())
end)
+
+ it("should percent encode path parameters", function()
+ assert.equals("golang.org%2fx%2ftools%2fgopls", api.encode_uri_component "golang.org/x/tools/gopls")
+ end)
end)