From e53678fd5841fe7b94f8f9e16d6521201a3d2993 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 26 Aug 2024 12:24:27 +0200 Subject: 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 --- tests/unit/streams_test.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/streams_test.ts b/tests/unit/streams_test.ts index c0adbda07..80b45e602 100644 --- a/tests/unit/streams_test.ts +++ b/tests/unit/streams_test.ts @@ -1,10 +1,5 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { - assertEquals, - assertRejects, - assertThrows, - fail, -} from "./test_util.ts"; +import { assertEquals, assertRejects, fail } from "./test_util.ts"; const { core, @@ -538,11 +533,3 @@ Deno.test(async function decompressionStreamInvalidGzipStillReported() { "corrupt gzip stream does not have a matching checksum", ); }); - -Deno.test(function readableStreamFromWithStringThrows() { - assertThrows( - () => ReadableStream.from("string"), - TypeError, - "Failed to execute 'ReadableStream.from': Argument 1 can not be converted to async iterable.", - ); -}); -- cgit v1.2.3