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

Merge pull request #332 from zobalogh/tail-done-fix

Fixing test termination
This commit is contained in:
Nick O'Leary 2014-08-07 13:34:46 +01:00
commit 15494dda84

View File

@ -80,8 +80,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();
});
});
@ -94,8 +96,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();
});
});
});