@@ -204,7 +204,7 @@ tests.FLUSHDB = function () {
204
204
tests . INCR = function ( ) {
205
205
var name = "INCR" ;
206
206
207
- if ( bclient . reply_parser . name == "hiredis" ) {
207
+ if ( bclient . reply_parser . name === "hiredis" ) {
208
208
console . log ( "Skipping INCR buffer test with hiredis" ) ;
209
209
return next ( name ) ;
210
210
}
@@ -371,7 +371,7 @@ tests.MULTI_6 = function () {
371
371
tests . MULTI_7 = function ( ) {
372
372
var name = "MULTI_7" ;
373
373
374
- if ( bclient . reply_parser . name != "javascript" ) {
374
+ if ( bclient . reply_parser . name !== "javascript" ) {
375
375
console . log ( "Skipping wire-protocol test for 3rd-party parser" ) ;
376
376
return next ( name ) ;
377
377
}
@@ -467,7 +467,7 @@ tests.FWD_ERRORS_1 = function () {
467
467
468
468
client3 . on ( "message" , function ( channel , data ) {
469
469
console . log ( "incoming" ) ;
470
- if ( channel == name ) {
470
+ if ( channel === name ) {
471
471
assert . equal ( data , "Some message" ) ;
472
472
throw toThrow ;
473
473
}
@@ -1286,11 +1286,11 @@ tests.SUBSCRIBE_CLOSE_RESUBSCRIBE = function () {
1286
1286
console . log ( "c1 is ready" , count ) ;
1287
1287
1288
1288
count ++ ;
1289
- if ( count == 1 ) {
1289
+ if ( count === 1 ) {
1290
1290
c2 . publish ( "chan1" , "hi on channel 1" ) ;
1291
1291
return ;
1292
1292
1293
- } else if ( count == 2 ) {
1293
+ } else if ( count === 2 ) {
1294
1294
c2 . publish ( "chan2" , "hi on channel 2" ) ;
1295
1295
1296
1296
} else {
0 commit comments