From 23ad635304204a3860bf7d659c2a9bc9ac1749ef Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Wed, 18 Apr 2018 16:34:12 +0200 Subject: [PATCH] Improve test name and ensure data is not trimmed when trimHeaders is set --- tests/test-cases.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-cases.js b/tests/test-cases.js index fc21635..773635e 100644 --- a/tests/test-cases.js +++ b/tests/test-cases.js @@ -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: [] } },