|
|
@ -640,5 +640,10 @@ var UNPARSE_TESTS = [ |
|
|
|
description: "Mismatched field counts in rows", |
|
|
|
description: "Mismatched field counts in rows", |
|
|
|
input: [['a', 'b', 'c'], ['d', 'e'], ['f']], |
|
|
|
input: [['a', 'b', 'c'], ['d', 'e'], ['f']], |
|
|
|
expected: 'a,b,c\r\nd,e\r\nf' |
|
|
|
expected: 'a,b,c\r\nd,e\r\nf' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
description: "JSON null is treated as empty value", |
|
|
|
|
|
|
|
input: [{ "Col1": "a", "Col2": null, "Col3": "c" }], |
|
|
|
|
|
|
|
expected: 'Col1,Col2,Col3\r\na,,c' |
|
|
|
} |
|
|
|
} |
|
|
|
]; |
|
|
|
]; |