|
|
|
@ -1638,11 +1638,17 @@ var UNPARSE_TESTS = [
@@ -1638,11 +1638,17 @@ var UNPARSE_TESTS = [
|
|
|
|
|
expected: 'date,not a date\r\n2018-05-04T21:08:03.269Z,16\r\n2018-05-08T15:20:22.000Z,32' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Returns empty rows when no content is passed and skipEmptyLines is true", |
|
|
|
|
description: "Returns empty rows when no content is passed and skipEmptyLines is false", |
|
|
|
|
input: [[null, ' '], [], ['1', '2']], |
|
|
|
|
config: {skipEmptyLines: true}, |
|
|
|
|
config: {skipEmptyLines: false}, |
|
|
|
|
expected: '," "\r\n\r\n1,2' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Returns without empty rows and skipEmptyLines is true", |
|
|
|
|
input: [[null, ' '], [], ['1', '2']], |
|
|
|
|
config: {skipEmptyLines: false}, |
|
|
|
|
expected: '," "\r\n1,2' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Returns without rows with no content when skipEmptyLines is 'greedy'", |
|
|
|
|
input: [[null, ' '], [], ['1', '2']], |
|
|
|
|