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:
parent
d351aa842c
commit
27b7fb54e8
@ -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',
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user