1
0
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:
Nick O'Leary 2016-10-11 11:16:10 +01:00
parent 22e1bafe1b
commit 84f7da6e93

View File

@ -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();