Skip to content

Commit

Permalink
fix trigger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones authored and Dave Conway-Jones committed Feb 4, 2016
1 parent 827711c commit d3a29a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/nodes/core/core/89-trigger_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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();
}
});
Expand All @@ -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() {
Expand Down

0 comments on commit d3a29a6

Please sign in to comment.