1
1
// Flags: --no-warnings --expose-internals
2
2
'use strict' ;
3
- 'use strict' ;
3
+
4
4
5
5
require ( '../common' ) ;
6
6
@@ -12,31 +12,31 @@ const {
12
12
} = require ( 'stream/web' ) ;
13
13
14
14
const {
15
- customInspectSymbol : kInspect ,
16
- } = require ( 'internal/util' ) ;
17
-
18
- describe ( 'DecompressionStream kInspect method' , ( ) => {
19
- it ( 'should return a predictable inspection string with DecompressionStream' , ( ) => {
20
- const decompressionStream = new DecompressionStream ( 'deflate' ) ;
21
- const depth = 1 ;
22
- const options = { } ;
23
- const actual = decompressionStream [ kInspect ] ( depth , options ) ;
24
-
25
- assert ( actual . includes ( 'DecompressionStream' ) ) ;
26
- assert ( actual . includes ( 'ReadableStream' ) ) ;
27
- assert ( actual . includes ( 'WritableStream' ) ) ;
28
- } ) ;
15
+ customInspectSymbol : kInspect ,
16
+ } = require ( 'internal/util' ) ;
17
+
18
+ describe ( 'DecompressionStream kInspect method' , ( ) => {
19
+ it ( 'should return a predictable inspection string with DecompressionStream' , ( ) => {
20
+ const decompressionStream = new DecompressionStream ( 'deflate' ) ;
21
+ const depth = 1 ;
22
+ const options = { } ;
23
+ const actual = decompressionStream [ kInspect ] ( depth , options ) ;
24
+
25
+ assert ( actual . includes ( 'DecompressionStream' ) ) ;
26
+ assert ( actual . includes ( 'ReadableStream' ) ) ;
27
+ assert ( actual . includes ( 'WritableStream' ) ) ;
28
+ } ) ;
29
+ } ) ;
30
+
31
+ describe ( 'CompressionStream kInspect method' , ( ) => {
32
+ it ( 'should return a predictable inspection string with CompressionStream' , ( ) => {
33
+ const compressionStream = new CompressionStream ( 'deflate' ) ;
34
+ const depth = 1 ;
35
+ const options = { } ;
36
+ const actual = compressionStream [ kInspect ] ( depth , options ) ;
37
+
38
+ assert ( actual . includes ( 'CompressionStream' ) ) ;
39
+ assert ( actual . includes ( 'ReadableStream' ) ) ;
40
+ assert ( actual . includes ( 'WritableStream' ) ) ;
29
41
} ) ;
30
-
31
- describe ( 'CompressionStream kInspect method' , ( ) => {
32
- it ( 'should return a predictable inspection string with CompressionStream' , ( ) => {
33
- const compressionStream = new CompressionStream ( 'deflate' ) ;
34
- const depth = 1 ;
35
- const options = { } ;
36
- const actual = compressionStream [ kInspect ] ( depth , options ) ;
37
-
38
- assert ( actual . includes ( 'CompressionStream' ) ) ;
39
- assert ( actual . includes ( 'ReadableStream' ) ) ;
40
- assert ( actual . includes ( 'WritableStream' ) ) ;
41
- } ) ;
42
- } ) ;
42
+ } ) ;
0 commit comments