@@ -187,12 +187,12 @@ describe("The 'batch' method", function () {
187
187
[ 'del' , 'some set' ] ,
188
188
[ 'smembers' , 'some set' , undefined ] // The explicit undefined is handled as a callback that is undefined
189
189
] )
190
- . scard ( 'some set' )
191
- . exec ( function ( err , replies ) {
192
- assert . strictEqual ( 4 , replies [ 0 ] . length ) ;
193
- assert . strictEqual ( 0 , replies [ 2 ] . length ) ;
194
- return done ( ) ;
195
- } ) ;
190
+ . scard ( 'some set' )
191
+ . exec ( function ( err , replies ) {
192
+ assert . strictEqual ( 4 , replies [ 0 ] . length ) ;
193
+ assert . strictEqual ( 0 , replies [ 2 ] . length ) ;
194
+ return done ( ) ;
195
+ } ) ;
196
196
} ) ;
197
197
198
198
it ( 'allows multiple operations to be performed using constructor with all kinds of syntax' , function ( done ) {
@@ -213,29 +213,29 @@ describe("The 'batch' method", function () {
213
213
[ 'HMSET' , 'batchhmset' , [ 'batchbar' , 'batchbaz' ] ] ,
214
214
[ 'hmset' , 'batchhmset' , [ 'batchbar' , 'batchbaz' ] , helper . isString ( 'OK' ) ] ,
215
215
] )
216
- . hmget ( now , 123456789 , 'otherTypes' )
217
- . hmget ( 'key2' , arr2 , function noop ( ) { } )
218
- . hmget ( [ 'batchhmset2' , 'some manner of key' , 'batchbar3' ] )
219
- . mget ( 'batchfoo2' , [ 'batchfoo3' , 'batchfoo' ] , function ( err , res ) {
220
- assert . strictEqual ( res [ 0 ] , 'batchbar2' ) ;
221
- assert . strictEqual ( res [ 1 ] , 'batchbar3' ) ;
222
- assert . strictEqual ( res [ 2 ] , null ) ;
223
- } )
224
- . exec ( function ( err , replies ) {
225
- assert . equal ( arr . length , 3 ) ;
226
- assert . equal ( arr2 . length , 2 ) ;
227
- assert . equal ( arr3 . length , 3 ) ;
228
- assert . equal ( arr4 . length , 3 ) ;
229
- assert . strictEqual ( null , err ) ;
230
- assert . equal ( replies [ 10 ] [ 1 ] , '555' ) ;
231
- assert . equal ( replies [ 11 ] [ 0 ] , 'a type of value' ) ;
232
- assert . strictEqual ( replies [ 12 ] [ 0 ] , null ) ;
233
- assert . equal ( replies [ 12 ] [ 1 ] , 'test' ) ;
234
- assert . equal ( replies [ 13 ] [ 0 ] , 'batchbar2' ) ;
235
- assert . equal ( replies [ 13 ] . length , 3 ) ;
236
- assert . equal ( replies . length , 14 ) ;
237
- return done ( ) ;
238
- } ) ;
216
+ . hmget ( now , 123456789 , 'otherTypes' )
217
+ . hmget ( 'key2' , arr2 , function noop ( ) { } )
218
+ . hmget ( [ 'batchhmset2' , 'some manner of key' , 'batchbar3' ] )
219
+ . mget ( 'batchfoo2' , [ 'batchfoo3' , 'batchfoo' ] , function ( err , res ) {
220
+ assert . strictEqual ( res [ 0 ] , 'batchbar2' ) ;
221
+ assert . strictEqual ( res [ 1 ] , 'batchbar3' ) ;
222
+ assert . strictEqual ( res [ 2 ] , null ) ;
223
+ } )
224
+ . exec ( function ( err , replies ) {
225
+ assert . equal ( arr . length , 3 ) ;
226
+ assert . equal ( arr2 . length , 2 ) ;
227
+ assert . equal ( arr3 . length , 3 ) ;
228
+ assert . equal ( arr4 . length , 3 ) ;
229
+ assert . strictEqual ( null , err ) ;
230
+ assert . equal ( replies [ 10 ] [ 1 ] , '555' ) ;
231
+ assert . equal ( replies [ 11 ] [ 0 ] , 'a type of value' ) ;
232
+ assert . strictEqual ( replies [ 12 ] [ 0 ] , null ) ;
233
+ assert . equal ( replies [ 12 ] [ 1 ] , 'test' ) ;
234
+ assert . equal ( replies [ 13 ] [ 0 ] , 'batchbar2' ) ;
235
+ assert . equal ( replies [ 13 ] . length , 3 ) ;
236
+ assert . equal ( replies . length , 14 ) ;
237
+ return done ( ) ;
238
+ } ) ;
239
239
} ) ;
240
240
241
241
it ( 'converts a non string key to a string' , function ( done ) {
@@ -316,11 +316,11 @@ describe("The 'batch' method", function () {
316
316
[ 'mget' , [ 'batchfoo' , 'some' , 'random value' , 'keys' ] ] ,
317
317
[ 'incr' , 'batchfoo' ]
318
318
] )
319
- . exec ( function ( err , replies ) {
320
- assert . strictEqual ( replies . length , 2 ) ;
321
- assert . strictEqual ( replies [ 0 ] . length , 4 ) ;
322
- return done ( ) ;
323
- } ) ;
319
+ . exec ( function ( err , replies ) {
320
+ assert . strictEqual ( replies . length , 2 ) ;
321
+ assert . strictEqual ( replies [ 0 ] . length , 4 ) ;
322
+ return done ( ) ;
323
+ } ) ;
324
324
} ) ;
325
325
326
326
it ( 'allows multiple operations to be performed on a hash' , function ( done ) {
0 commit comments