Skip to content

Commit

Permalink
Improve test name and ensure data is not trimmed when trimHeaders is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergi Almacellas Abellana committed Apr 18, 2018
1 parent cb68215 commit 23ad635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,11 @@ var PARSE_TESTS = [
}
},
{
description: "Header row with whitespace trimmed",
input: ' A , B , C \r\na,b,c',
description: "Header rows are trimmed when trimHeaders is set",
input: ' A , B , C \r\na,b ,c',
config: { header: true, trimHeaders: true },
expected: {
data: [{"A": "a", "B": "b", "C": "c"}],
data: [{"A": "a", "B": "b ", "C": "c"}],
errors: []
}
},
Expand Down

0 comments on commit 23ad635

Please sign in to comment.