mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02: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