Browse Source

Removed tests for quotes determined by column id

pull/703/head
Puzzleton 6 years ago
parent
commit
3d24a6a383
  1. 12
      tests/test-cases.js

12
tests/test-cases.js

@ -1723,18 +1723,6 @@ var UNPARSE_TESTS = [ @@ -1723,18 +1723,6 @@ var UNPARSE_TESTS = [
config: { quotes: function(value) { return typeof value === 'string'; } },
expected: '"Col1","Col2","Col3"\r\n"a","b","c"\r\n"d",10,true'
},
{
description: "Force quotes around values in first column only",
input: [['a', 'b', 'c'], ['d', 10, true]],
config: { quotes: function(value, col) { return col === 0; } },
expected: '"a",b,c\r\n"d",10,true'
},
{
description: "Force quotes around values in first column only (with header row)",
input: [{ "Col1": "a", "Col2": "b", "Col3": "c" }, { "Col1": "d", "Col2": 10, "Col3": true }],
config: { quotes: function(value, col) { return col === 0; } },
expected: '"Col1",Col2,Col3\r\n"a",b,c\r\n"d",10,true'
},
{
description: "Empty input",
input: [],

Loading…
Cancel
Save