diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/081_location_relative_fetch_redirect.ts | 2 | ||||
-rw-r--r-- | cli/tests/081_location_relative_fetch_redirect.ts.out | 1 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 6 |
3 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/081_location_relative_fetch_redirect.ts b/cli/tests/081_location_relative_fetch_redirect.ts new file mode 100644 index 000000000..742ef0afb --- /dev/null +++ b/cli/tests/081_location_relative_fetch_redirect.ts @@ -0,0 +1,2 @@ +const response = await fetch("/"); +console.log(response.url); diff --git a/cli/tests/081_location_relative_fetch_redirect.ts.out b/cli/tests/081_location_relative_fetch_redirect.ts.out new file mode 100644 index 000000000..f62b93195 --- /dev/null +++ b/cli/tests/081_location_relative_fetch_redirect.ts.out @@ -0,0 +1 @@ +[WILDCARD]http://localhost:4545/ diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 226bf9b9b..9cb5cd5f1 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2662,6 +2662,12 @@ itest!(_080_deno_emit_permissions { exit_code: 1, }); +itest!(_081_location_relative_fetch_redirect { + args: "run --location http://127.0.0.1:4546/ --allow-net 081_location_relative_fetch_redirect.ts", + output: "081_location_relative_fetch_redirect.ts.out", + http_server: true, +}); + itest!(js_import_detect { args: "run --quiet --reload js_import_detect.ts", output: "js_import_detect.ts.out", |