From af61dbed874863db308f3a421ad142a7f106687a Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Thu, 31 Oct 2019 22:33:27 -0400 Subject: Upgrade node_modules, change tagline, clean up root directory (#3247) * Upgrade node_modules * Simplify tagline * Move gclient_config.py out of root * Move package.json to tools * Remove yarn.lock * Remove CONTRIBUTING.md --- cli/js/fetch_test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'cli/js/fetch_test.ts') diff --git a/cli/js/fetch_test.ts b/cli/js/fetch_test.ts index 56c693681..1b9450dcd 100644 --- a/cli/js/fetch_test.ts +++ b/cli/js/fetch_test.ts @@ -21,7 +21,7 @@ testPerm({ net: true }, async function fetchConnectionError(): Promise { }); testPerm({ net: true }, async function fetchJsonSuccess(): Promise { - const response = await fetch("http://localhost:4545/package.json"); + const response = await fetch("http://localhost:4545/cli/tests/fixture.json"); const json = await response.json(); assertEquals(json.name, "deno"); }); @@ -29,7 +29,7 @@ testPerm({ net: true }, async function fetchJsonSuccess(): Promise { test(async function fetchPerm(): Promise { let err; try { - await fetch("http://localhost:4545/package.json"); + await fetch("http://localhost:4545/cli/tests/fixture.json"); } catch (err_) { err = err_; } @@ -38,19 +38,19 @@ test(async function fetchPerm(): Promise { }); testPerm({ net: true }, async function fetchUrl(): Promise { - const response = await fetch("http://localhost:4545/package.json"); - assertEquals(response.url, "http://localhost:4545/package.json"); + const response = await fetch("http://localhost:4545/cli/tests/fixture.json"); + assertEquals(response.url, "http://localhost:4545/cli/tests/fixture.json"); }); testPerm({ net: true }, async function fetchHeaders(): Promise { - const response = await fetch("http://localhost:4545/package.json"); + const response = await fetch("http://localhost:4545/cli/tests/fixture.json"); const headers = response.headers; assertEquals(headers.get("Content-Type"), "application/json"); assert(headers.get("Server").startsWith("SimpleHTTP")); }); testPerm({ net: true }, async function fetchBlob(): Promise { - const response = await fetch("http://localhost:4545/package.json"); + const response = await fetch("http://localhost:4545/cli/tests/fixture.json"); const headers = response.headers; const blob = await response.blob(); assertEquals(blob.type, headers.get("Content-Type")); @@ -58,7 +58,7 @@ testPerm({ net: true }, async function fetchBlob(): Promise { }); testPerm({ net: true }, async function fetchBodyUsed(): Promise { - const response = await fetch("http://localhost:4545/package.json"); + const response = await fetch("http://localhost:4545/cli/tests/fixture.json"); assertEquals(response.bodyUsed, false); assertThrows( (): void => { @@ -71,7 +71,7 @@ testPerm({ net: true }, async function fetchBodyUsed(): Promise { }); testPerm({ net: true }, async function fetchAsyncIterator(): Promise { - const response = await fetch("http://localhost:4545/package.json"); + const response = await fetch("http://localhost:4545/cli/tests/fixture.json"); const headers = response.headers; let total = 0; for await (const chunk of response.body) { @@ -82,7 +82,7 @@ testPerm({ net: true }, async function fetchAsyncIterator(): Promise { }); testPerm({ net: true }, async function responseClone(): Promise { - const response = await fetch("http://localhost:4545/package.json"); + const response = await fetch("http://localhost:4545/cli/tests/fixture.json"); const response1 = response.clone(); assert(response !== response1); assertEquals(response.status, response1.status); -- cgit v1.2.3