Fix incorrect async test completion

This commit is contained in:
Nick O'Leary
2015-11-14 20:27:04 +00:00
parent 45f67191ba
commit a92a741932
3 changed files with 28 additions and 21 deletions

View File

@@ -77,7 +77,6 @@ describe('JSON node', function() {
var jn1 = helper.getNode("jn1");
var jn2 = helper.getNode("jn2");
jn2.on("input", function(msg) {
console.log(msg);
should.equal(msg.payload, '[1,2,3]');
done();
});
@@ -118,7 +117,6 @@ describe('JSON node', function() {
var logEvents = helper.log().args.filter(function(evt) {
return evt[0].type == "json";
});
console.log(logEvents);
logEvents.should.have.length(3);
logEvents[0][0].should.have.a.property('msg');
logEvents[0][0].msg.toString().should.eql('json.errors.dropped');