Fix Switch msg sequence test

This commit is contained in:
Nick O'Leary 2018-07-11 16:36:58 +01:00
parent 6f087b4ec1
commit c2675600f6
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 3 deletions

View File

@ -747,7 +747,7 @@ describe('switch Node', function() {
msg.should.have.property("payload");
var payload = msg.payload;
msg.should.have.property("parts");
vf(payload).should.be.ok;
vf(payload).should.be.ok();
var parts = msg.parts;
var evals = vals[ix];
parts.should.have.property("id");
@ -861,9 +861,9 @@ describe('switch Node', function() {
var data = [ 1, -2, 2, 0, -1 ];
var outs = {
"n2" : { port:0, vals:[1, 2, 0],
vf:function(x) { return(x > 0); } },
vf:function(x) { return(x >= 0); } },
"n3" : { port:1, vals:[-2, 0, -1],
vf:function(x) { return(x < 0); } },
vf:function(x) { return(x <= 0); } },
"n4" : { port:2, vals:[],
vf:function(x) { return(false); } },
};