diff options
author | Luka Hartwig <mail@lukahartwig.de> | 2020-02-02 22:55:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 16:55:22 -0500 |
commit | f168597b7ab81afda3bf4749a81c360d364e7cf1 (patch) | |
tree | 4082e9eebf03cc7b3b653822c52a54a62e308d15 /cli/js/fetch_test.ts | |
parent | e8df66c12cbb3e51f8776aa91e6db41bbfdcae5e (diff) |
Remove //tests symlink (#3849)
Diffstat (limited to 'cli/js/fetch_test.ts')
-rw-r--r-- | cli/js/fetch_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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<void> { 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<void> { 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("<title>Directory listing for /tests/</title>")); + assert(body.includes("<title>Directory listing for /cli/tests/</title>")); }); // 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 }); */ |