Update debug_spec test for Error messages

This commit is contained in:
Nick O'Leary 2017-01-14 21:47:18 +00:00
parent 5349bf7628
commit d146ff8794
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -136,7 +136,7 @@ describe('debug node', function() {
n1.emit("input", {payload: new Error("oops")});
}, function(msg) {
JSON.parse(msg).should.eql({
topic:"debug",data:{id:"n1",msg:"Error: oops",property:"payload",format:"error"}
topic:"debug",data:{id:"n1",msg:'{"name":"Error","message":"oops"}',property:"payload",format:"error"}
});
}, done);
});