Browse Source

Add test to ensure that the two Skip flags are independant

pull/446/head
Shane Preece 7 years ago
parent
commit
407eeb603d
  1. 10
      tests/test-cases.js

10
tests/test-cases.js

@ -1075,6 +1075,16 @@ var PARSE_TESTS = [ @@ -1075,6 +1075,16 @@ var PARSE_TESTS = [
errors: []
}
},
{
description: "skipEmptyFieldsLines leaves empty lines alone",
notes: "",
input: 'a,b\n\nc,d',
config: { skipEmptyFieldsLines: true },
expected: {
data: [['a', 'b'], [], ['c', 'd']],
errors: []
}
},
{
description: "Skipping empty fields lines and empty lines work well with each other",
notes: "",

Loading…
Cancel
Save