File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ describe('The node_redis client', function () {
25
25
var command = 'really-new.command' ;
26
26
assert . strictEqual ( Redis . prototype [ command ] , undefined ) ;
27
27
redis . addCommand ( command ) ;
28
- assert . strictEqual ( Redis . prototype [ command ] . name , 'really_new_command' ) ;
29
- assert . strictEqual ( Redis . prototype [ command . toUpperCase ( ) ] . name , 'really_new_command' ) ;
30
- assert . strictEqual ( Redis . prototype . really_new_command . name , 'really_new_command' ) ;
31
- assert . strictEqual ( Redis . prototype . REALLY_NEW_COMMAND . name , 'really_new_command' ) ;
28
+ if ( Redis . prototype [ command ] . name !== '' ) {
29
+ assert . strictEqual ( Redis . prototype [ command ] . name , 'really_new_command' ) ;
30
+ assert . strictEqual ( Redis . prototype [ command . toUpperCase ( ) ] . name , 'really_new_command' ) ;
31
+ assert . strictEqual ( Redis . prototype . really_new_command . name , 'really_new_command' ) ;
32
+ assert . strictEqual ( Redis . prototype . REALLY_NEW_COMMAND . name , 'really_new_command' ) ;
33
+ }
32
34
} ) ;
33
35
} ) ;
34
36
You can’t perform that action at this time.
0 commit comments