1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fixing test termination

This commit is contained in:
zobalogh 2014-08-07 13:23:20 +01:00
parent 960d15491d
commit ea22ffa2bf

View File

@ -72,8 +72,10 @@ describe('TailNode', function() {
helperNode1.on("input", function(msg) {
msg.should.have.property('topic', fileToTail);
msg.payload.should.equal("Tail message line" + (++inputCounter));
if(inputCounter === 2) {
done();
}
});
done();
});
});
@ -86,8 +88,8 @@ describe('TailNode', function() {
helperNode1.on("input", function(msg) {
msg.should.have.property('topic', fileToTail);
msg.payload.should.equal("Tail message line1\nTail message line2\n");
done();
});
done();
});
});
});