mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Ensure trigger second output is revaluated for date types
This commit is contained in:
@@ -152,7 +152,7 @@ describe('trigger node', function() {
|
||||
if (rval) {
|
||||
msg.should.have.property("payload");
|
||||
if (type == "date" && val == "0") {
|
||||
should.deepEqual(Math.round(msg.payload/1000000), parseInt(Date.now()/1000000));
|
||||
;(Math.round(msg.payload/1000000)).should.be.approximately(parseInt(Date.now()/1000000), 1);
|
||||
}
|
||||
else if (type == "date" && val == "iso") {
|
||||
should.deepEqual(msg.payload.substr(0,11), rval.substr(0,11));
|
||||
|
Reference in New Issue
Block a user