Browse Source

Improve test name and ensure data is not trimmed when trimHeaders is set

pull/496/head
Sergi Almacellas Abellana 7 years ago
parent
commit
23ad635304
  1. 6
      tests/test-cases.js

6
tests/test-cases.js

@ -714,11 +714,11 @@ var PARSE_TESTS = [
} }
}, },
{ {
description: "Header row with whitespace trimmed", description: "Header rows are trimmed when trimHeaders is set",
input: ' A , B , C \r\na,b,c', input: ' A , B , C \r\na,b ,c',
config: { header: true, trimHeaders: true }, config: { header: true, trimHeaders: true },
expected: { expected: {
data: [{"A": "a", "B": "b", "C": "c"}], data: [{"A": "a", "B": "b ", "C": "c"}],
errors: [] errors: []
} }
}, },

Loading…
Cancel
Save