summaryrefslogtreecommitdiff
path: root/tests/unit_node/fetch_test.ts
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-08-26 12:24:27 +0200
committerGitHub <noreply@github.com>2024-08-26 12:24:27 +0200
commite53678fd5841fe7b94f8f9e16d6521201a3d2993 (patch)
tree8954b7d1e04f3319c3c71b7b7f9ca16529a8edd5 /tests/unit_node/fetch_test.ts
parent675539c7ab503e5a5bdef1d17678afb7b8dc352b (diff)
Revert "feat(fetch): accept async iterables for body" (#25207)
Unfortunately this caused a regression: https://github.com/denoland/deno/issues/25203. Need to do some more upstream spec work to fix this before this can be re-landed. Reverts denoland/deno#24623
Diffstat (limited to 'tests/unit_node/fetch_test.ts')
-rw-r--r--tests/unit_node/fetch_test.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/unit_node/fetch_test.ts b/tests/unit_node/fetch_test.ts
deleted file mode 100644
index 399d6052a..000000000
--- a/tests/unit_node/fetch_test.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-
-import { assertEquals } from "@std/assert";
-import { createReadStream } from "node:fs";
-
-Deno.test("fetch node stream", async () => {
- const file = createReadStream("tests/testdata/assets/fixture.json");
-
- const response = await fetch("http://localhost:4545/echo_server", {
- method: "POST",
- body: file,
- });
-
- assertEquals(
- await response.text(),
- await Deno.readTextFile("tests/testdata/assets/fixture.json"),
- );
-});