summaryrefslogtreecommitdiff
path: root/cli/js/tests/url_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-03-10 16:38:02 +0100
committerGitHub <noreply@github.com>2020-03-10 16:38:02 +0100
commitfbc4731256a698c07d0d842575d3678d7dc58715 (patch)
treefd085bf832513989f3fa0cf73287fe3e520309a5 /cli/js/tests/url_test.ts
parent62f4a2a788a46af88e47472738d1a98fa247b9b0 (diff)
refactor: uncomment tests broken tests, use skip (#4311)
* uncomment broken tests, use skip: - net_test.ts - url_test.ts - fetch_test.ts
Diffstat (limited to 'cli/js/tests/url_test.ts')
-rw-r--r--cli/js/tests/url_test.ts22
1 files changed, 13 insertions, 9 deletions
diff --git a/cli/js/tests/url_test.ts b/cli/js/tests/url_test.ts
index 46468c8ae..c00bfa8d3 100644
--- a/cli/js/tests/url_test.ts
+++ b/cli/js/tests/url_test.ts
@@ -180,15 +180,19 @@ unitTest(function sortingNonExistentParamRemovesQuestionMarkFromURL(): void {
assertEquals(url.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(
+ {
+ // FIXME(bartlomieju)
+ skip: 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 protocolNotHttpOrFile() {
const url = new URL("about:blank");