diff options
Diffstat (limited to 'tests/mason-registry/api_spec.lua')
| -rw-r--r-- | tests/mason-registry/api_spec.lua | 4 |
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) |
