@@ -14,9 +14,12 @@ describe('Gzip', () => {
1414
1515 it ( 'can compress and decompress a stream' , async ( ) => {
1616 const text = 'Hello, world! This is a stream test.' ;
17+ // @ts -expect-error missing types in devtools_foundation_module.
1718 const textEncoder = new TextEncoder ( ) ;
19+ // @ts -expect-error missing types in devtools_foundation_module.
1820 const inputStream = new ReadableStream ( {
19- start ( controller ) {
21+ // @ts -expect-error missing types in devtools_foundation_module.
22+ start ( controller : ReadableStreamController < Uint8Array < ArrayBuffer > > ) {
2023 controller . enqueue ( textEncoder . encode ( text ) ) ;
2124 controller . close ( ) ;
2225 } ,
@@ -25,7 +28,9 @@ describe('Gzip', () => {
2528 const compressedStream = Common . Gzip . compressStream ( inputStream ) ;
2629 const decompressedStream = Common . Gzip . decompressStream ( compressedStream ) ;
2730
31+ // @ts -expect-error missing types in devtools_foundation_module.
2832 const buffer = await new Response ( decompressedStream ) . arrayBuffer ( ) ;
33+ // @ts -expect-error missing types in devtools_foundation_module.
2934 const decodedText = new TextDecoder ( ) . decode ( buffer ) ;
3035
3136 assert . strictEqual ( decodedText , text ) ;
@@ -41,6 +46,7 @@ describe('arrayBufferToString', () => {
4146 } ) ;
4247 it ( 'can decode a plaintext buffer' , async ( ) => {
4348 const text = 'Hello, buddy!' ;
49+ // @ts -expect-error missing types in devtools_foundation_module.
4450 const buffer = new TextEncoder ( ) . encode ( text ) . buffer ;
4551 const result = await Common . Gzip . arrayBufferToString ( buffer ) ;
4652 assert . strictEqual ( result , text ) ;
@@ -51,11 +57,13 @@ describe('fileToString', () => {
5157 it ( 'can decompress a gzipped file' , async ( ) => {
5258 const text = '{"key": "value"}' ;
5359 const compressed = await Common . Gzip . compress ( text ) ;
60+ // @ts -expect-error missing types in devtools_foundation_module.
5461 const result = await Common . Gzip . fileToString ( new File ( [ compressed ] , 'file.json.gz' , { type : 'application/gzip' } ) ) ;
5562 assert . strictEqual ( result , text ) ;
5663 } ) ;
5764 it ( 'can decode a plaintext file' , async ( ) => {
5865 const text = 'Hello, buddy!' ;
66+ // @ts -expect-error missing types in devtools_foundation_module.
5967 const file = new File ( [ text ] , 'test.txt' ) ;
6068 const result = await Common . Gzip . fileToString ( file ) ;
6169 assert . strictEqual ( result , text ) ;
0 commit comments