@@ -12,7 +12,9 @@ var client;
1212
1313describe ( 'The node_redis client' , function ( ) {
1414
15- describe . only ( "The 'add_command' method" , function ( ) {
15+ describe ( "The 'add_command' method" , function ( ) {
16+
17+ var Redis = redis . RedisClient ;
1618
1719 it ( 'camel case and snakeCase version exists' , function ( ) {
1820 assert . strictEqual ( typeof redis . addCommand , 'function' ) ;
@@ -21,12 +23,12 @@ describe('The node_redis client', function () {
2123
2224 it ( 'converts special characters in functions names to lowercase' , function ( ) {
2325 var command = 'really-new.command' ;
24- assert . strictEqual ( redis . prototype [ command ] , undefined ) ;
26+ assert . strictEqual ( Redis . prototype [ command ] , undefined ) ;
2527 redis . addCommand ( command ) ;
26- assert . strictEqual ( redis . prototype [ command ] . name , 'really_new_command' ) ;
27- assert . strictEqual ( redis . prototype [ command . toUpperCase ( ) ] . name , 'really_new_command' ) ;
28- assert . strictEqual ( redis . prototype . really_new_command . name , 'really_new_command' ) ;
29- assert . strictEqual ( redis . prototype . REALLY_NEW_COMMAND . name , 'really_new_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' ) ;
3032 } ) ;
3133 } ) ;
3234
0 commit comments