Skip to content

Commit 23ad635

Browse files
author
Sergi Almacellas Abellana
committed
Improve test name and ensure data is not trimmed when trimHeaders is set
1 parent cb68215 commit 23ad635

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test-cases.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,11 @@ var PARSE_TESTS = [
714714
}
715715
},
716716
{
717-
description: "Header row with whitespace trimmed",
718-
input: ' A , B , C \r\na,b,c',
717+
description: "Header rows are trimmed when trimHeaders is set",
718+
input: ' A , B , C \r\na,b ,c',
719719
config: { header: true, trimHeaders: true },
720720
expected: {
721-
data: [{"A": "a", "B": "b", "C": "c"}],
721+
data: [{"A": "a", "B": "b ", "C": "c"}],
722722
errors: []
723723
}
724724
},

0 commit comments

Comments
 (0)