mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix null checking in exec node test
This commit is contained in:
parent
22e1bafe1b
commit
84f7da6e93
@ -259,7 +259,8 @@ describe('exec node', function() {
|
|||||||
n4.on("input", function(msg) {
|
n4.on("input", function(msg) {
|
||||||
try {
|
try {
|
||||||
msg.should.have.property("payload");
|
msg.should.have.property("payload");
|
||||||
should.not.be.null(msg.payload);
|
|
||||||
|
should.exist(msg.payload);
|
||||||
msg.payload.should.be.a.Number();
|
msg.payload.should.be.a.Number();
|
||||||
msg.payload.should.equal(0);
|
msg.payload.should.equal(0);
|
||||||
done();
|
done();
|
||||||
|
Loading…
Reference in New Issue
Block a user