mirror of
https://github.com/coder/code-server.git
synced 2024-12-04 23:03:06 +08:00
506d3f43ed
* 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> |
||
---|---|---|
.. | ||
routes | ||
test-plugin | ||
app.test.ts | ||
cli.test.ts | ||
constants.test.ts | ||
http.test.ts | ||
plugin.test.ts | ||
proxy.test.ts | ||
settings.test.ts | ||
socket.test.ts | ||
update.test.ts | ||
util.test.ts |