Browse Source

Fix quotes value for per-column quoting tests

pull/70/head
Julian Scheid 11 years ago
parent
commit
13abd07100
  1. 4
      tests/test-cases.js

4
tests/test-cases.js

@ -542,13 +542,13 @@ var UNPARSE_TESTS = [
{ {
description: "Force quotes around certain fields only", description: "Force quotes around certain fields only",
input: [['a', 'b', 'c'], ['d', 'e', 'f']], input: [['a', 'b', 'c'], ['d', 'e', 'f']],
config: { quotes: [0, 2] }, config: { quotes: [true, false, true] },
expected: '"a",b,"c"\r\n"d",e,"f"' expected: '"a",b,"c"\r\n"d",e,"f"'
}, },
{ {
description: "Force quotes around certain fields only (with header row)", description: "Force quotes around certain fields only (with header row)",
input: [{ "Col1": "a", "Col2": "b", "Col3": "c" }, { "Col1": "d", "Col2": "e", "Col3": "f" }], input: [{ "Col1": "a", "Col2": "b", "Col3": "c" }, { "Col1": "d", "Col2": "e", "Col3": "f" }],
config: { quotes: [0, 2] }, config: { quotes: [true, false, true] },
expected: '"Col1",Col2,"Col3"\r\n"a",b,"c"\r\n"d",e,"f"' expected: '"Col1",Col2,"Col3"\r\n"a",b,"c"\r\n"d",e,"f"'
}, },
{ {

Loading…
Cancel
Save