MCPcopy
hub / github.com/node-red/node-red / check_parts

Function check_parts

test/nodes/core/parsers/70-CSV_spec.js:68–78  ·  view source on GitHub ↗
(msg, index, count)

Source from the content-addressed store, hash-verified

66 });
67
68 function check_parts(msg, index, count) {
69 msg.should.have.property('parts');
70 if(parts_id === undefined) {
71 parts_id = msg.parts.id;
72 }
73 else {
74 msg.parts.should.have.property('id', parts_id);
75 }
76 msg.parts.should.have.property('index', index);
77 msg.parts.should.have.property('count', count);
78 }
79
80 it('should convert a simple csv string to a javascript object', function(done) {
81 var flow = [ { id:"n1", type:"csv", temp:"a,b,c,d", wires:[["n2"]] },

Callers 1

70-CSV_spec.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected