From a60cec090bb181196ec0ff7b258647c46fb0411e Mon Sep 17 00:00:00 2001 From: jaymeans Date: Thu, 26 Jul 2018 11:04:56 -0700 Subject: [PATCH] adding test for lines with no content --- tests/test-cases.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test-cases.js b/tests/test-cases.js index df5c152..56d72f8 100644 --- a/tests/test-cases.js +++ b/tests/test-cases.js @@ -1338,6 +1338,16 @@ var PARSE_TESTS = [ truncated: false } } + }, + { + description: "Parsing with skipNoContentLines", + notes: "Must parse correctly without lines with no content", + input: 'a,b\n\n,\nc,d\n , \n""," "\n " " , " "\n,,,,\n",,,",","\n', + config: { skipEmptyLines: true, skipNoContentLines: true }, + expected: { + data: [['a', 'b'], ['c', 'd']], + errors: [] + } } ];