@@ -10,7 +10,7 @@ const writeStream = new WriteStream(fd);
10
10
11
11
{
12
12
const depth = writeStream . getColorDepth ( ) ;
13
- assert . equal ( typeof depth , 'number' ) ;
13
+ assert . strictEqual ( typeof depth , 'number' ) ;
14
14
assert ( depth >= 1 && depth <= 24 ) ;
15
15
}
16
16
@@ -44,7 +44,7 @@ const writeStream = new WriteStream(fd);
44
44
[ { TERM : 'dumb' , COLORTERM : '1' } , 4 ] ,
45
45
] . forEach ( ( [ env , depth ] , i ) => {
46
46
const actual = writeStream . getColorDepth ( env ) ;
47
- assert . equal (
47
+ assert . strictEqual (
48
48
actual ,
49
49
depth ,
50
50
`i: ${ i } , expected: ${ depth } , actual: ${ actual } , env: ${ env } `
@@ -57,8 +57,8 @@ const writeStream = new WriteStream(fd);
57
57
const [ value , depth1 , depth2 ] = process . platform !== 'win32' ?
58
58
[ 'win32' , 1 , 4 ] : [ 'linux' , 4 , 1 ] ;
59
59
60
- assert . equal ( writeStream . getColorDepth ( { } ) , depth1 ) ;
60
+ assert . strictEqual ( writeStream . getColorDepth ( { } ) , depth1 ) ;
61
61
Object . defineProperty ( process , 'platform' , { value } ) ;
62
- assert . equal ( writeStream . getColorDepth ( { } ) , depth2 ) ;
62
+ assert . strictEqual ( writeStream . getColorDepth ( { } ) , depth2 ) ;
63
63
Object . defineProperty ( process , 'platform' , platform ) ;
64
64
}
0 commit comments