From d3a29a6f1601d29fa143d42f0fc9799042886d6c Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 4 Feb 2016 21:22:52 +0000 Subject: [PATCH] fix trigger tests --- test/nodes/core/core/89-trigger_spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/nodes/core/core/89-trigger_spec.js b/test/nodes/core/core/89-trigger_spec.js index f3cae2654..fcb9c5104 100644 --- a/test/nodes/core/core/89-trigger_spec.js +++ b/test/nodes/core/core/89-trigger_spec.js @@ -35,8 +35,8 @@ describe('trigger Node', function() { helper.load(triggerNode, flow, function() { var n1 = helper.getNode("n1"); n1.should.have.property('name', 'triggerNode'); - n1.should.have.property('op1', 1); - n1.should.have.property('op2', 0); + n1.should.have.property('op1', '1'); + n1.should.have.property('op2', '0'); n1.should.have.property('op1type', 'val'); n1.should.have.property('op2type', 'val'); n1.should.have.property('extend', "false"); @@ -82,11 +82,11 @@ describe('trigger Node', function() { var c = 0; n2.on("input", function(msg) { if (c === 0) { - msg.should.have.a.property("payload", 1); + msg.should.have.a.property("payload", '1'); c+=1; } else { - msg.should.have.a.property("payload", 0); + msg.should.have.a.property("payload", '0'); done(); } }); @@ -103,11 +103,11 @@ describe('trigger Node', function() { var c = 0; n2.on("input", function(msg) { if (c === 0) { - msg.should.have.a.property("payload", 1); + msg.should.have.a.property("payload", '1'); c+=1; } else { - msg.should.have.a.property("payload", 0); + msg.should.have.a.property("payload", '0'); } }); setTimeout( function() {