diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-01-29 13:08:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 08:08:22 -0500 |
commit | f3122442db70d16f4861f39edf32d89ac2530aa2 (patch) | |
tree | e60d30f4501e808075ddc3cf13b6764774dc9df5 /cli/tests/unit/url_test.ts | |
parent | 98878bd81231a631c494b6767576097f945eb813 (diff) |
fix(op_crates/web): Add customInspect for Location (#9290)
Diffstat (limited to 'cli/tests/unit/url_test.ts')
-rw-r--r-- | cli/tests/unit/url_test.ts | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/cli/tests/unit/url_test.ts b/cli/tests/unit/url_test.ts index 40e641978..b8c4bb831 100644 --- a/cli/tests/unit/url_test.ts +++ b/cli/tests/unit/url_test.ts @@ -387,19 +387,25 @@ unitTest(function sortingNonExistentParamRemovesQuestionMarkFromURL(): void { assertEquals(url.search, ""); }); -unitTest( - { - // FIXME(bartlomieju) - ignore: true, - }, - function customInspectFunction(): void { - const url = new URL("http://example.com/?"); - assertEquals( - Deno.inspect(url), - 'URL { href: "http://example.com/?", origin: "http://example.com", protocol: "http:", username: "", password: "", host: "example.com", hostname: "example.com", port: "", pathname: "/", hash: "", search: "?" }', - ); - }, -); +unitTest(function customInspectFunction(): void { + const url = new URL("http://example.com/?"); + assertEquals( + Deno.inspect(url), + `URL { + href: "http://example.com/?", + origin: "http://example.com", + protocol: "http:", + username: "", + password: "", + host: "example.com", + hostname: "example.com", + port: "", + pathname: "/", + hash: "", + search: "?" +}`, + ); +}); unitTest(function protocolNotHttpOrFile() { const url = new URL("about:blank"); |