summaryrefslogtreecommitdiff
path: root/cli/tests/unit/fetch_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/fetch_test.ts')
-rw-r--r--cli/tests/unit/fetch_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts
index e2ff0d5e0..a668bb480 100644
--- a/cli/tests/unit/fetch_test.ts
+++ b/cli/tests/unit/fetch_test.ts
@@ -869,13 +869,13 @@ Deno.test(
);
Deno.test(function responseRedirect() {
- const redir = Response.redirect("example.com/newLocation", 301);
+ const redir = Response.redirect("http://example.com/newLocation", 301);
assertEquals(redir.status, 301);
assertEquals(redir.statusText, "");
assertEquals(redir.url, "");
assertEquals(
redir.headers.get("Location"),
- "http://js-unit-tests/foo/example.com/newLocation",
+ "http://example.com/newLocation",
);
assertEquals(redir.type, "default");
});