@@ -8,7 +8,6 @@ function compare(t, encoding, file1, file2, n, r, o) {
88 var src = fs . createReadStream ( path . join ( __dirname , 'fixtures' , file1 ) , { encoding :encoding } ) ;
99 var rs = Rs ( n , r , o ) ;
1010 var cs = Cs ( function ( data ) {
11- console . log ( typeof data ) ;
1211 var d2 = fs . readFileSync ( path . join ( __dirname , 'fixtures' , file2 ) , encoding ) ;
1312 t . deepEqual ( data , d2 ) ;
1413 } ) ;
@@ -30,12 +29,12 @@ test('should change first 6 occurances of "of" to "0ffer"', function(t) {
3029 compare ( t , 'utf-8' , 'lorem.txt' , '6x0ffer.txt' , 'of' , '0ffer' , { maxOccurances : 6 } ) ;
3130} ) ;
3231
33- test ( 'hould not alter a binary stream' , function ( t ) {
32+ test ( 'should not alter a binary stream' , function ( t ) {
3433 t . plan ( 1 ) ;
35- compare ( t , 'binary' , 'random.bin' , 'random.bin' , new Buffer ( [ 0xff , 0xff , 0xff , 0xff ] ) , new Buffer ( [ 0x00 ] ) ) ;
34+ compare ( t , null , 'random.bin' , 'random.bin' , new Buffer ( [ 0xff , 0xff , 0xff , 0xff ] ) , new Buffer ( [ 0x00 ] ) ) ;
3635} ) ;
3736
3837test ( 'should replace all occurances of 0xff with 0x00 in a binary file' , function ( t ) {
3938 t . plan ( 1 ) ;
40- compare ( t , 'binary' , 'random.bin' , 'ffto00.bin' , new Buffer ( [ 0xff ] ) , new Buffer ( [ 0x00 ] ) ) ;
39+ compare ( t , null , 'random.bin' , 'ffto00.bin' , new Buffer ( [ 0xff ] ) , new Buffer ( [ 0x00 ] ) ) ;
4140} ) ;
0 commit comments