From fbc4731256a698c07d0d842575d3678d7dc58715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 10 Mar 2020 16:38:02 +0100 Subject: refactor: uncomment tests broken tests, use skip (#4311) * uncomment broken tests, use skip: - net_test.ts - url_test.ts - fetch_test.ts --- cli/js/tests/url_test.ts | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'cli/js/tests/url_test.ts') 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"); -- cgit v1.2.3