diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-10-13 16:16:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 17:16:10 +0200 |
commit | d0c2714c033b010cbd174138638881dc65abef06 (patch) | |
tree | c070bfb3efd05719bf3b2906a8ec7e69a3963fec /cli/tests/unit | |
parent | bbf7b2ee72ae7dede26e4ef48b384404525f389e (diff) |
fix(op_crates/web/url): apply backslash replacement to the pathname setter (#7937)
Diffstat (limited to 'cli/tests/unit')
-rw-r--r-- | cli/tests/unit/url_test.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tests/unit/url_test.ts b/cli/tests/unit/url_test.ts index e9632c7de..7c8cd3796 100644 --- a/cli/tests/unit/url_test.ts +++ b/cli/tests/unit/url_test.ts @@ -192,6 +192,8 @@ unitTest(function urlModifyPathname(): void { // deno-lint-ignore no-self-assign url.pathname = url.pathname; assertEquals(url.pathname, "/baz%23qat%20qux"); + url.pathname = "\\a\\b\\c"; + assertEquals(url.pathname, "/a/b/c"); }); unitTest(function urlModifyHash(): void { |