Fix RBE greater than change not emitting on first message

And fix missing close tags
This commit is contained in:
Dave Conway-Jones
2020-05-31 21:52:37 +01:00
parent 01d675b372
commit cd85fe8df2
4 changed files with 9 additions and 6 deletions

View File

@@ -286,9 +286,12 @@ describe('rbe node', function() {
n2.on("input", function(msg) {
c = c + 1;
if (c === 1) {
msg.should.have.a.property("payload", 120);
msg.should.have.a.property("payload", 100);
}
else if (c === 2) {
msg.should.have.a.property("payload", 111);
}
else if (c === 3) {
msg.should.have.a.property("payload", 135);
done();
}
@@ -296,8 +299,8 @@ describe('rbe node', function() {
n1.emit("input", {payload:100});
n1.emit("input", {payload:95});
n1.emit("input", {payload:105});
n1.emit("input", {payload:111});
n1.emit("input", {payload:120});
n1.emit("input", {payload:130});
n1.emit("input", {payload:135});
});
});