mirror of https://github.com/node-red/node-red.git
fix test
parent
b7cef0bce7
commit
54849e9e62
|
|
@ -146,7 +146,7 @@ module.exports = function(RED) {
|
|||
var pos = 0;
|
||||
var data = value;
|
||||
msg.parts.len = node.arraySplt;
|
||||
const newmsg = RED.utils.cloneMessge(msg)
|
||||
const newmsg = RED.util.cloneMessage(msg)
|
||||
for (var i=0; i<count; i++) {
|
||||
var m = data.slice(pos,pos+node.arraySplt);
|
||||
if (node.arraySplt === 1) {
|
||||
|
|
@ -155,7 +155,7 @@ module.exports = function(RED) {
|
|||
RED.util.setMessageProperty(newmsg,node.property,m);
|
||||
newmsg.parts.index = i;
|
||||
pos += node.arraySplt;
|
||||
send(RED.utils.cloneMessage(newmsg));
|
||||
send(RED.util.cloneMessage(newmsg));
|
||||
}
|
||||
done();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue