From f168597b7ab81afda3bf4749a81c360d364e7cf1 Mon Sep 17 00:00:00 2001 From: Luka Hartwig Date: Sun, 2 Feb 2020 22:55:22 +0100 Subject: Remove //tests symlink (#3849) --- cli/js/fetch_test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/js/fetch_test.ts') diff --git a/cli/js/fetch_test.ts b/cli/js/fetch_test.ts index 92d1176cc..b8a7c8641 100644 --- a/cli/js/fetch_test.ts +++ b/cli/js/fetch_test.ts @@ -114,7 +114,7 @@ testPerm({ net: true }, async function fetchMultipartFormDataSuccess(): Promise< void > { const response = await fetch( - "http://localhost:4545/tests/subdir/multipart_form_data.txt" + "http://localhost:4545/cli/tests/subdir/multipart_form_data.txt" ); const formData = await response.formData(); assert(formData.has("field_1")); @@ -131,7 +131,7 @@ testPerm( { net: true }, async function fetchURLEncodedFormDataSuccess(): Promise { const response = await fetch( - "http://localhost:4545/tests/subdir/form_urlencoded.txt" + "http://localhost:4545/cli/tests/subdir/form_urlencoded.txt" ); const formData = await response.formData(); assert(formData.has("field_1")); @@ -153,11 +153,11 @@ testPerm({ net: true }, async function fetchWithRedirection(): Promise { testPerm({ net: true }, async function fetchWithRelativeRedirection(): Promise< void > { - const response = await fetch("http://localhost:4545/tests"); // will redirect to /tests/ + const response = await fetch("http://localhost:4545/cli/tests"); // will redirect to /cli/tests/ assertEquals(response.status, 200); assertEquals(response.statusText, "OK"); const body = await response.text(); - assert(body.includes("Directory listing for /tests/")); + assert(body.includes("Directory listing for /cli/tests/")); }); // The feature below is not implemented, but the test should work after implementation @@ -165,7 +165,7 @@ testPerm({ net: true }, async function fetchWithRelativeRedirection(): Promise< testPerm({ net: true }, async function fetchWithInfRedirection(): Promise< void > { - const response = await fetch("http://localhost:4549/tests"); // will redirect to the same place + const response = await fetch("http://localhost:4549/cli/tests"); // will redirect to the same place assertEquals(response.status, 0); // network error }); */ -- cgit v1.2.3