1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

nail trigger test for windows AND linux

This commit is contained in:
Dave Conway-Jones 2017-03-06 19:06:10 +00:00
parent d351aa842c
commit 27b7fb54e8
2 changed files with 6 additions and 6 deletions

View File

@ -137,9 +137,9 @@
} }
var optionNothing = {value:"nul",label:this._("trigger.output.nothing"),hasValue:false}; var optionNothing = {value:"nul",label:this._("trigger.output.nothing"),hasValue:false};
var optionPayload = {value:"pay",label:this._("trigger.output.existing"),hasValue:false} var optionPayload = {value:"pay",label:this._("trigger.output.existing"),hasValue:false};
var optionOriginalPayload = {value:"pay",label:this._("trigger.output.original"),hasValue:false} var optionOriginalPayload = {value:"pay",label:this._("trigger.output.original"),hasValue:false};
var optionLatestPayload = {value:"payl",label:this._("trigger.output.latest"),hasValue:false} var optionLatestPayload = {value:"payl",label:this._("trigger.output.latest"),hasValue:false};
$("#node-input-op1").typedInput({ $("#node-input-op1").typedInput({
default: 'str', default: 'str',

View File

@ -413,11 +413,11 @@ describe('trigger node', function() {
n1.emit("input", {payload:"foo"}); // trigger n1.emit("input", {payload:"foo"}); // trigger
setTimeout( function() { setTimeout( function() {
n1.emit("input", {reset:true}); // reset n1.emit("input", {reset:true}); // reset
},95); },90);
setTimeout( function() { setTimeout( function() {
c.should.equal(4); // should send foo 4 times. c.should.equalOneOf(3,4); // should send foo 3 or 4 times.
done(); done();
},150); },180);
}); });
}); });