Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/test/unit
Joe Previte 506d3f43ed
feat(http): keep slashes in queryParams in redirects (#4928)
* refactor(http): extract logic into constructRedirectPath

This allows us to easily test our redirect path construction logic where we get
the relative path, the query string and construct a redirect path.

By extracting this from `redirect`, we can easily test this logic in a unit
test.

I did this so we could test some logic where slashes in query strings should be
made human-friendly for users.

* feat(testing): add tests for constructRedirectPath

Co-authored-by: Asher <ash@coder.com>
2022-03-01 12:11:56 -07:00
..
common Implement last opened functionality (#4633) 2021-12-17 13:06:52 -06:00
node feat(http): keep slashes in queryParams in redirects (#4928) 2022-03-01 12:11:56 -07:00
helpers.test.ts Implement last opened functionality (#4633) 2021-12-17 13:06:52 -06:00