@@ -244,10 +244,10 @@ exports.batch = function (test, testCommon) {
244
244
245
245
db . once ( 'write' , function ( operations ) {
246
246
t . same ( operations , [
247
- { type : 'put' , key : 'a' , value : 'a' , keyEncoding : utf8 , valueEncoding : json , encodedKey : 'a' , encodedValue : '"a"' } ,
248
- { type : 'put' , key : 'b' , value : 'b' , keyEncoding : utf8 , valueEncoding : utf8 , encodedKey : 'b' , encodedValue : 'b' } ,
249
- { type : 'put' , key : '"c"' , value : 'c' , keyEncoding : utf8 , valueEncoding : utf8 , encodedKey : '"c"' , encodedValue : 'c' } ,
250
- { type : 'del' , key : 'c' , keyEncoding : json , encodedKey : '"c"' , arbitraryOption : true }
247
+ { type : 'put' , key : 'a' , value : 'a' , keyEncoding : utf8 , valueEncoding : json , encodedKey : utf8 . encode ( 'a' ) , encodedValue : utf8 . encode ( '"a"' ) } ,
248
+ { type : 'put' , key : 'b' , value : 'b' , keyEncoding : utf8 , valueEncoding : utf8 , encodedKey : utf8 . encode ( 'b' ) , encodedValue : utf8 . encode ( 'b' ) } ,
249
+ { type : 'put' , key : '"c"' , value : 'c' , keyEncoding : utf8 , valueEncoding : utf8 , encodedKey : utf8 . encode ( '"c"' ) , encodedValue : utf8 . encode ( 'c' ) } ,
250
+ { type : 'del' , key : 'c' , keyEncoding : json , encodedKey : utf8 . encode ( '"c"' ) , arbitraryOption : true }
251
251
] )
252
252
} )
253
253
0 commit comments