(msg, index, count)
| 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"]] }, |