summaryrefslogtreecommitdiff
path: root/tests/unit_node/fetch_test.ts
diff options
context:
space:
mode:
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"),
- );
-});