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/node
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
..
routes Implement last opened functionality (#4633) 2021-12-17 13:06:52 -06:00
test-plugin release: 4.0.1 (#4678) 2022-01-05 13:06:32 -07:00
app.test.ts Implement last opened functionality (#4633) 2021-12-17 13:06:52 -06:00
cli.test.ts feat(testing): add new test for cli.ts (#4898) 2022-02-24 11:07:42 -07:00
constants.test.ts feat: add version string functions to constants (#4920) 2022-02-28 13:55:47 -08:00
http.test.ts feat(http): keep slashes in queryParams in redirects (#4928) 2022-03-01 12:11:56 -07:00
plugin.test.ts release: 4.0.1 (#4678) 2022-01-05 13:06:32 -07:00
proxy.test.ts chore: replace eslint-import-resolver-alias with eslint-import-resolver-typescript (#4546) 2021-12-07 14:39:01 -07:00
settings.test.ts feat: publish beta and development tags on npm (#4769) 2022-01-21 16:28:56 -07:00
socket.test.ts refactor: match /test/unit structure to /src 2021-07-29 09:48:40 -07:00
update.test.ts feat(testing): add test for parse when error in args + config (#4866) 2022-02-15 16:19:22 -07:00
util.test.ts revert: @node-rs/argon2 -> node-argon2 (#4829) 2022-02-04 15:52:42 -07:00