mirror of
https://github.com/node-red/node-red
synced 2024-11-22 07:58:04 +00:00
Update debug_spec test for Error messages
This commit is contained in:
parent
5349bf7628
commit
d146ff8794
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user