@@ -204,7 +204,7 @@ tests.FLUSHDB = function () {
204204tests . INCR = function ( ) {
205205 var name = "INCR" ;
206206
207- if ( bclient . reply_parser . name == "hiredis" ) {
207+ if ( bclient . reply_parser . name === "hiredis" ) {
208208 console . log ( "Skipping INCR buffer test with hiredis" ) ;
209209 return next ( name ) ;
210210 }
@@ -371,7 +371,7 @@ tests.MULTI_6 = function () {
371371tests . MULTI_7 = function ( ) {
372372 var name = "MULTI_7" ;
373373
374- if ( bclient . reply_parser . name != "javascript" ) {
374+ if ( bclient . reply_parser . name !== "javascript" ) {
375375 console . log ( "Skipping wire-protocol test for 3rd-party parser" ) ;
376376 return next ( name ) ;
377377 }
@@ -467,7 +467,7 @@ tests.FWD_ERRORS_1 = function () {
467467
468468 client3 . on ( "message" , function ( channel , data ) {
469469 console . log ( "incoming" ) ;
470- if ( channel == name ) {
470+ if ( channel === name ) {
471471 assert . equal ( data , "Some message" ) ;
472472 throw toThrow ;
473473 }
@@ -1286,11 +1286,11 @@ tests.SUBSCRIBE_CLOSE_RESUBSCRIBE = function () {
12861286 console . log ( "c1 is ready" , count ) ;
12871287
12881288 count ++ ;
1289- if ( count == 1 ) {
1289+ if ( count === 1 ) {
12901290 c2 . publish ( "chan1" , "hi on channel 1" ) ;
12911291 return ;
12921292
1293- } else if ( count == 2 ) {
1293+ } else if ( count === 2 ) {
12941294 c2 . publish ( "chan2" , "hi on channel 2" ) ;
12951295
12961296 } else {
0 commit comments