@@ -51,7 +51,7 @@ var json2csvTests = function () {
51
51
if ( err ) { throw err ; }
52
52
true . should . equal ( _ . isEqual ( err , null ) ) ;
53
53
csv . should . equal ( csvTestData . unQuoted . nestedQuotes ) ;
54
- csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 4 ) ;
54
+ csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 5 ) ;
55
55
done ( ) ;
56
56
} ) ;
57
57
} ) ;
@@ -210,7 +210,7 @@ var json2csvTests = function () {
210
210
if ( err ) { throw err ; }
211
211
true . should . equal ( _ . isEqual ( err , null ) ) ;
212
212
csv . should . equal ( csvTestData . unQuoted . nestedQuotes ) ;
213
- csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 4 ) ;
213
+ csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 5 ) ;
214
214
done ( ) ;
215
215
} , options ) ;
216
216
} ) ;
@@ -385,7 +385,7 @@ var json2csvTests = function () {
385
385
if ( err ) { throw err ; }
386
386
true . should . equal ( _ . isEqual ( err , null ) ) ;
387
387
csv . should . equal ( csvTestData . unQuoted . nestedQuotes . replace ( new RegExp ( defaultOptions . DELIMITER . FIELD , 'g' ) , options . DELIMITER . FIELD ) ) ;
388
- csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 4 ) ;
388
+ csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 5 ) ;
389
389
done ( ) ;
390
390
} , options ) ;
391
391
} ) ;
@@ -562,7 +562,7 @@ var json2csvTests = function () {
562
562
if ( err ) { throw err ; }
563
563
true . should . equal ( _ . isEqual ( err , null ) ) ;
564
564
csv . should . equal ( csvTestData . quoted . nestedQuotes . replace ( / , / g, options . DELIMITER . FIELD ) ) ;
565
- csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 4 ) ;
565
+ csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 5 ) ;
566
566
done ( ) ;
567
567
} , options ) ;
568
568
} ) ;
@@ -882,7 +882,7 @@ var json2csvTests = function () {
882
882
converter . json2csvPromisified ( jsonTestData . nestedQuotes )
883
883
. then ( function ( csv ) {
884
884
csv . should . equal ( csvTestData . unQuoted . nestedQuotes ) ;
885
- csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 4 ) ;
885
+ csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 5 ) ;
886
886
done ( ) ;
887
887
} )
888
888
. catch ( function ( err ) {
@@ -1024,7 +1024,7 @@ var json2csvTests = function () {
1024
1024
converter . json2csvPromisified ( jsonTestData . nestedQuotes , options )
1025
1025
. then ( function ( csv ) {
1026
1026
csv . should . equal ( csvTestData . unQuoted . nestedQuotes ) ;
1027
- csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 4 ) ;
1027
+ csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 5 ) ;
1028
1028
done ( ) ;
1029
1029
} )
1030
1030
. catch ( function ( err ) {
@@ -1195,7 +1195,7 @@ var json2csvTests = function () {
1195
1195
converter . json2csvPromisified ( jsonTestData . nestedQuotes , options )
1196
1196
. then ( function ( csv ) {
1197
1197
csv . should . equal ( csvTestData . unQuoted . nestedQuotes . replace ( new RegExp ( defaultOptions . DELIMITER . FIELD , 'g' ) , options . DELIMITER . FIELD ) ) ;
1198
- csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 4 ) ;
1198
+ csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 5 ) ;
1199
1199
done ( ) ;
1200
1200
} )
1201
1201
. catch ( function ( err ) {
@@ -1368,7 +1368,7 @@ var json2csvTests = function () {
1368
1368
converter . json2csvPromisified ( jsonTestData . nestedQuotes , options )
1369
1369
. then ( function ( csv ) {
1370
1370
csv . should . equal ( csvTestData . quoted . nestedQuotes . replace ( / , / g, options . DELIMITER . FIELD ) ) ;
1371
- csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 4 ) ;
1371
+ csv . split ( options . DELIMITER . EOL ) . length . should . equal ( 5 ) ;
1372
1372
done ( ) ;
1373
1373
} )
1374
1374
. catch ( function ( err ) {
0 commit comments