From 9a4ff5cb4365bf8d1c1e8a490deb651614ab1e9f Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 3 Nov 2016 08:56:38 +0000 Subject: [PATCH] fix test for CSV array input --- test/nodes/core/parsers/70-CSV_spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/nodes/core/parsers/70-CSV_spec.js b/test/nodes/core/parsers/70-CSV_spec.js index 9c93f6244..4f14159ac 100644 --- a/test/nodes/core/parsers/70-CSV_spec.js +++ b/test/nodes/core/parsers/70-CSV_spec.js @@ -227,12 +227,12 @@ describe('CSV node', function() { var n2 = helper.getNode("n2"); n2.on("input", function(msg) { try { - msg.should.have.property('payload', '1,2,3,4\n'); + msg.should.have.property('payload', '0,1,2,3,4\n'); done(); } catch(e) { done(e); } }); - var testJson = [1,2,3,4]; + var testJson = [0,1,2,3,4]; n1.emit("input", {payload:testJson}); }); }); @@ -245,12 +245,12 @@ describe('CSV node', function() { var n2 = helper.getNode("n2"); n2.on("input", function(msg) { try { - msg.should.have.property('payload', '1,2,3,4\n4,3,2,1\n'); + msg.should.have.property('payload', '0,1,2,3,4\n4,3,2,1,0\n'); done(); } catch(e) { done(e); } }); - var testJson = [[1,2,3,4],[4,3,2,1]]; + var testJson = [[0,1,2,3,4],[4,3,2,1,0]]; n1.emit("input", {payload:testJson}); }); });