mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix Flow test for updated node.done api
This commit is contained in:
parent
4ce0e39760
commit
83932e1725
@ -148,10 +148,10 @@ describe('Flow', function() {
|
|||||||
this.stopped = false;
|
this.stopped = false;
|
||||||
this.closeDelay = n.closeDelay || 50;
|
this.closeDelay = n.closeDelay || 50;
|
||||||
currentNodes[node.id] = node;
|
currentNodes[node.id] = node;
|
||||||
this.on('input',function(msg, done) {
|
this.on('input',function(msg, send, done) {
|
||||||
node.handled++;
|
node.handled++;
|
||||||
node.messages.push(msg);
|
node.messages.push(msg);
|
||||||
node.send(msg);
|
send(msg);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
this.on('close',function(done) {
|
this.on('close',function(done) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user