mirror of
https://github.com/node-red/node-red
synced 2024-11-21 15:43:16 +00:00
Update 89-trigger_spec.js
This commit is contained in:
parent
61fd01b871
commit
892933ff75
@ -112,7 +112,7 @@ describe('trigger node', function() {
|
|||||||
if (rval) {
|
if (rval) {
|
||||||
msg.should.have.property("payload");
|
msg.should.have.property("payload");
|
||||||
if (type == "date" && val == "1") {
|
if (type == "date" && val == "1") {
|
||||||
should.deepEqual(Math.round(msg.payload/10000), Math.round(rval/10000));
|
should.deepEqual(Math.round(msg.payload/1000000), Math.round(Date.now()/1000000));
|
||||||
}
|
}
|
||||||
else if (type == "date" && val == "iso") {
|
else if (type == "date" && val == "iso") {
|
||||||
should.deepEqual(msg.payload.substr(0,11), rval.substr(0,11));
|
should.deepEqual(msg.payload.substr(0,11), rval.substr(0,11));
|
||||||
@ -152,7 +152,7 @@ describe('trigger node', function() {
|
|||||||
if (rval) {
|
if (rval) {
|
||||||
msg.should.have.property("payload");
|
msg.should.have.property("payload");
|
||||||
if (type == "date" && val == "0") {
|
if (type == "date" && val == "0") {
|
||||||
should.deepEqual(Math.round(msg.payload/10000), Math.round(rval/10000));
|
should.deepEqual(Math.round(msg.payload/1000000), parseInt(Date.now()/1000000));
|
||||||
}
|
}
|
||||||
else if (type == "date" && val == "iso") {
|
else if (type == "date" && val == "iso") {
|
||||||
should.deepEqual(msg.payload.substr(0,11), rval.substr(0,11));
|
should.deepEqual(msg.payload.substr(0,11), rval.substr(0,11));
|
||||||
|
Loading…
Reference in New Issue
Block a user