@@ -12,7 +12,9 @@ var client;
12
12
13
13
describe ( 'The node_redis client' , function ( ) {
14
14
15
- describe . only ( "The 'add_command' method" , function ( ) {
15
+ describe ( "The 'add_command' method" , function ( ) {
16
+
17
+ var Redis = redis . RedisClient ;
16
18
17
19
it ( 'camel case and snakeCase version exists' , function ( ) {
18
20
assert . strictEqual ( typeof redis . addCommand , 'function' ) ;
@@ -21,12 +23,12 @@ describe('The node_redis client', function () {
21
23
22
24
it ( 'converts special characters in functions names to lowercase' , function ( ) {
23
25
var command = 'really-new.command' ;
24
- assert . strictEqual ( redis . prototype [ command ] , undefined ) ;
26
+ assert . strictEqual ( Redis . prototype [ command ] , undefined ) ;
25
27
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' ) ;
30
32
} ) ;
31
33
} ) ;
32
34
0 commit comments