fix csv export (#466)

* style: cleanup formatting

* fix: prevent issues with csv export

* chore: update test snapshots
This commit is contained in:
Carlos Valente
2023-07-23 15:06:25 +02:00
committed by GitHub
parent 3603b836f6
commit bb1eb2838f
4 changed files with 13 additions and 8 deletions
@@ -84,7 +84,7 @@ describe('make CSV()', () => {
it('joins an array of arrays with commas and newlines', () => {
const testdata = [['field'], ['after newline', 'after comma'], ['', 'after empty']];
expect(makeCSV(testdata)).toMatchInlineSnapshot(`
"data:text/csv;charset=utf-8,field
"field
after newline,after comma
,after empty
"