diff options
author | ayame113 <40050810+ayame113@users.noreply.github.com> | 2022-07-20 19:30:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 18:30:41 +0800 |
commit | 27a72a12b772cfa74b519714aca6e3b6fdaa5eeb (patch) | |
tree | 7a36d0494797e3296f1deae51e733378f2abfd99 /cli/tests/unit/url_test.ts | |
parent | b8e1250500ba07971b2f05847fdcbbfe548caa44 (diff) |
chore: align some Web API type definitions to lib.dom.d.ts (#15219)
Diffstat (limited to 'cli/tests/unit/url_test.ts')
-rw-r--r-- | cli/tests/unit/url_test.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/unit/url_test.ts b/cli/tests/unit/url_test.ts index 3d4e1aa2c..0ba848add 100644 --- a/cli/tests/unit/url_test.ts +++ b/cli/tests/unit/url_test.ts @@ -494,3 +494,15 @@ Deno.test(function urlSearchParamsIdentityPreserved() { const sp2 = u.searchParams; assertStrictEquals(sp1, sp2); }); + +Deno.test(function urlTakeURLObjectAsParameter() { + const url = new URL( + new URL( + "https://foo:bar@baz.qat:8000/qux/quux?foo=bar&baz=12#qat", + ), + ); + assertEquals( + url.href, + "https://foo:bar@baz.qat:8000/qux/quux?foo=bar&baz=12#qat", + ); +}); |