@@ -165,7 +165,7 @@ test('Modifying headers using Headers.prototype.set', () => {
165165} )
166166
167167// https://github.com/nodejs/node/issues/43838
168- test ( 'constructing a Response with a ReadableStream body' , { skip : process . version . startsWith ( 'v16.' ) } , async ( t ) => {
168+ test ( 'constructing a Response with a ReadableStream body' , async ( t ) => {
169169 const text = '{"foo":"bar"}'
170170 const uint8 = new TextEncoder ( ) . encode ( text )
171171
@@ -199,7 +199,7 @@ test('constructing a Response with a ReadableStream body', { skip: process.versi
199199 await assert . rejects ( response . text ( ) , TypeError )
200200 } )
201201
202- await t . test ( 'Readable with ArrayBuffer chunk still throws' , { skip : process . version . startsWith ( 'v16.' ) } , async ( ) => {
202+ await t . test ( 'Readable with ArrayBuffer chunk still throws' , async ( ) => {
203203 const readable = new ReadableStream ( {
204204 start ( controller ) {
205205 controller . enqueue ( uint8 . buffer )
@@ -210,14 +210,12 @@ test('constructing a Response with a ReadableStream body', { skip: process.versi
210210 const response1 = new Response ( readable )
211211 const response2 = response1 . clone ( )
212212 const response3 = response1 . clone ( )
213- // const response4 = response1.clone()
213+ const response4 = response1 . clone ( )
214214
215215 await assert . rejects ( response1 . arrayBuffer ( ) , TypeError )
216216 await assert . rejects ( response2 . text ( ) , TypeError )
217217 await assert . rejects ( response3 . json ( ) , TypeError )
218- // TODO: on Node v16.8.0, this throws a TypeError
219- // because the body is detected as disturbed.
220- // await t.rejects(response4.blob(), TypeError)
218+ await assert . rejects ( response4 . blob ( ) , TypeError )
221219 } )
222220} )
223221
0 commit comments